27.03.2014, 11:53
How do i make Random Messages that sends to all players in every 5 minutes
//top of your GM
new RandomMSG[][] =
{
"Random Message 1",
"Random Message 2",
"Random Message 3"
};
//under OnGameModeInit
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
forward SendMSG();
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "COLOR" with your defined color.
}