27.03.2014, 11:58
pawn Код:
//top of your GM
new RandomMSG[][] =
{
"Random Message 1",
"Random Message 2",
"Random Message 3"
};
pawn Код:
//under OnGameModeInit
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
pawn Код:
forward SendMSG();
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}