10.09.2011, 04:52
pawn Code:
// ongamemodeinit
SetTimer("SendMSG",60000); // set for every 1 minute
// bottom of script
public SendMSG() // will send all messages from the RandomMSG array we created below every 1 minute
{
new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG
SendClientMessageToAll(0x33CCFFAA, RandomMSG[randMSG]); // Replace the "color" with your defined color.
return 1;
}
// top of script
new RandomMSG[][] =
{
"message 1 here",
"message 2 here",
"message 3 here",
"etc..."
};