Code: Select all
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Messages Shower"
#define VERSION "1.0"
#define AUTHOR "Alka"
#define ADVERTISING_TIME 50.0
stock const messages[][] = {
"* [Sol] ^x03 Bun Vent pe Sol.ExtremeCs.ro",
"* [Sol] ^x03 Adaugati sv la fav: sol.extremecs.ro",
"* [Sol] ^x03 Pentru admin/slot cereri ban/unban etc vizitatie pe forum: http://extremecs.ro/ sectiunea Sol",
"* [Sol] ^x03 Echipa Sol.ExtremeCs.Ro va ureaza bft la fraguri si un joc placut",
"* [Sol] ^x03 IL cauti pe ZoZoL3? dai add la Y!M: bogdan_bogdi1993 ",
"* [Sol] ^x03 IL cauti pe SoL^CremA? dai add la Y!M: nitualex09 "
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(ADVERTISING_TIME, "show_messages", _, _, _,"b");
}
public show_messages()
{
new Buffer[256];
formatex(Buffer, sizeof Buffer - 1, "^x04%s", messages[random(sizeof messages)]);
new players[32], num, id;
get_players(players, num);
for(new i = 0 ; i < num ; i++)
{
id = players[i]
message_begin(MSG_ONE, get_user_msgid("SayText"), _, id);
write_byte(id);
write_string(Buffer);
message_end();
}
}
cine ma poate ajuta?:( va rog mie imi da erori:( ^:)^ ^:)^