14-07-13, 10:41
Bu fonksiyonun başka kütüphanesi yok. Başka şekilde yalnızca stock sayesinde yapabilirsin.
chat_color stock:
Örnek Kullanım:
chat_color(id,"!gOrnek !yKullanim")
Kullanımı:
Chat_Color Stock unu plugin de bir yere yapıştır -herhangi bir public içine değil- . Daha sonra örnek kullanımda yazdığım şekilde kullanabilirsin.[/i][/i][/i]
chat_color stock:
PHP Code:
stock chat_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, "!t", "^3")
replace_all(msg, 190, "!team2", "^0")
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)
write_byte(players);
write_string(msg);
message_end();
}
}
}
}
Örnek Kullanım:
chat_color(id,"!gOrnek !yKullanim")
Kullanımı:
Chat_Color Stock unu plugin de bir yere yapıştır -herhangi bir public içine değil- . Daha sonra örnek kullanımda yazdığım şekilde kullanabilirsin.[/i][/i][/i]
uhcakiP
Özel Plugin Kodlanır! Steam_ID = STEAM_0:0:54912140
Steam_Nick = Ragnar Lothbrok
https://steamcommunity.com/id/lothbrok

