#include <amxmodx>
new const PLUGIN[] = "Random_Message";
new const VERSION[] = "2.0";
new const AUTHOR[] = "By.KinG";
new const Messages[][] =
{
"[95.173.173.14] : ISIK AYARI ICIN saydan /isik yaziniz..",
"[95.173.173.14] : SHOPDAN GELISMELER YAPABILIRSINIZ saydan /shop yaziniz..",
"[95.173.173.14] : 2 Kere W Bastiginizda Hizlanirsiniz!!",
"[95.173.173.14] : 18 Yas Civari Ekibimize Yetkili Alincaktir : 0507 053 4208 WHATSAPP SADECE",
"[95.173.173.14] : Teamspeak3 Adresimiz : Gawiscanse Yazarak Girebilirsiniz!",
"[95.173.173.14] : Küfür & Hile & Speed Tarzi Kullanımlar Yasaktir ID Ban Yersiniz!"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
set_task(30.0, "Message_Show", 0, _, _, "b");
}
public Message_Show()
{
Renkli_Yazi(0, "!t[BILGI] !g%s", Messages[random_num(0, sizeof(Messages) - 1)]);
}
stock Renkli_Yazi(const ID, const Input[], any:...)
{
static Message[191];
vformat(Message, 190, Input, 6);
replace_all(Message, 190, "!n", "^x01");
replace_all(Message, 190, "!g", "^x04");
replace_all(Message, 190, "!t", "^x03");
replace_all(Message, 190, "!n", "^x01");
replace_all(Message, 190, "!g", "^x04");
replace_all(Message, 190, "!t", "^x03");
#if AMXX_VERSION_NUM < 183
new Count = 1, Players[32];
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(Message);
message_end();
}
}
}
#else
client_print_color(ID, ID, Message);
#endif
}