28.02.2014, 06:32
I'M ASSUMING, THIS IS WHAT YOU WANT:
Too lazy to write one, there's a good one on wiki.sa-mp.com already:
Don't forget to call the function ongamemodeinit
To add colors to the messages, simply change it to:
Too lazy to write one, there's a good one on wiki.sa-mp.com already:
pawn Код:
new RandomMSG[][] =
{
"Random Message 1",
"Random Message 2",
"Random Message 3"
};
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}
pawn Код:
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
pawn Код:
Change FFFFFF to whatever hex colour you want to be used.
"{FFFFFF}BOT:{FFFFFF}Random Message 1",