25.01.2017, 23:24
Random Messages need more improvements
Код:
forward SendMSG(); new RandomMSG[][] = { "Random Message 1", "Random Message 2", "Random Message 3" }; public SendMSG() { new randMSG = random(sizeof(RandomMSG)); SendClientMessageToAll(-1, RandomMSG[randMSG]); }
Код:
public OnGameModeInit() { SetTimer("SendMSG", 60000, true); // whats the right timer? (So it won't call too fast) }