Auto Message
#2

Around top of Script:
Код:
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;
}
Around end of Script:
Код:
forward SendMSG();
public SendMSG()
{
    new randMSG = random(sizeof(RandomMSG));
    SendClientMessageToAll(COLOR_MSGCOLOR, RandomMSG[randMSG]); //Remember to change the color
}
i think that all
Reply


Messages In This Thread
Auto Message - by Jermi - 01.04.2012, 22:53
Re: Auto Message - by MrEnd - 01.04.2012, 23:23
Re: Auto Message - by WooTFTW - 01.04.2012, 23:27
Re: Auto Message - by MrEnd - 01.04.2012, 23:28
Re: Auto Message - by Jermi - 02.04.2012, 16:14
Re: Auto Message - by MrEnd - 02.04.2012, 17:30

Forum Jump:


Users browsing this thread: 2 Guest(s)