[Tutorial] CS 1.6 Stock pentru colorarea pluginului
Just4You :: COUNTER-STRIKE :: Tutoriale
Pagina 1 din 1
[Tutorial] CS 1.6 Stock pentru colorarea pluginului
Adaugam asta la sfarsitul pluginului
stock color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Aici un exemplu
#include < amxmodx >
#include < amxmisc >
public plugin_init()
{
register_concmd("say /restart","rr5",ADMIN_KICK,"-Da Restart")
}
public rr5(){
color(0,"!gLive Live Live")
color(0,"!teamLive Live Live")
color(0,"!gLive Live Live")
color(0,"!yLive Live Live")
color(0,"!gLive Live Live")
color(0,"!teamLive Live Live")
server_cmd("sv_restart 1");
return PLUGIN_HANDLED;
}
stock color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
stock color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Aici un exemplu
#include < amxmodx >
#include < amxmisc >
public plugin_init()
{
register_concmd("say /restart","rr5",ADMIN_KICK,"-Da Restart")
}
public rr5(){
color(0,"!gLive Live Live")
color(0,"!teamLive Live Live")
color(0,"!gLive Live Live")
color(0,"!yLive Live Live")
color(0,"!gLive Live Live")
color(0,"!teamLive Live Live")
server_cmd("sv_restart 1");
return PLUGIN_HANDLED;
}
stock color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Icsulescu- Membru
- Mesaje : 100
Data de inscriere : 12/06/2017
Puncte : 296
Reputatie : 0
Subiecte similare
» [Tutorial] CS 1.6 Nume arme pentru bind-uri
» 27 pasi pentru a scapa de LAG
» Scripturi pentru Config.
» Patch-uirea serverelor CS 1.6 pentru protocol 47 si 48
» Ip Dinamic (Info: Solutie pentru cei care li se schimba ip)
» 27 pasi pentru a scapa de LAG
» Scripturi pentru Config.
» Patch-uirea serverelor CS 1.6 pentru protocol 47 si 48
» Ip Dinamic (Info: Solutie pentru cei care li se schimba ip)
Just4You :: COUNTER-STRIKE :: Tutoriale
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum