30.04.2009, 21:36
Quote:
Originally Posted by lavamike
Maybe post your code? The code that you added as in whatever you added to your script with that tutorial.
|
pawn Код:
new RandomMSG[] =
{
"Random Message 1",
"Random Message 2",
"Random Message 3"
};
forward SendMSG();
public OnGameModeInit()
{
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
}
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG (which is 3)
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "color" with your defined color.
}