01.04.2012, 22:53
How can i put Auto message System? Got link?
new RandomMSG[][] = { "Message 1", //edit "Message 2", //edit "Message 3" //edit };
public OnGameModeInit() { DisableInteriorEnterExits(); SetTimer("SendMSG", 300000, true); //300000 is 5min (60000 X min to find the minutes) return 1; }
forward SendMSG(); public SendMSG() { new randMSG = random(sizeof(RandomMSG)); SendClientMessageToAll(COLOR_MSGCOLOR, RandomMSG[randMSG]); //Remember to change the color }
ONE SEC!!! EDITING
FORGOT SOMETHING xD Around top of Script: Код:
new RandomMSG[][] = { "Message 1", "Message 1", "Message 1", }; Код:
forward SendMSG(); public SendMSG() { new randMSG = random(sizeof(RandomMSG)); SendClientMessageToAll(COLOR_MSGCOLOR, RandomMSG[randMSG]); } |
"Message 1", //edit "Message 2", //edit "Message 3" //edit
"Message", "Message"