Lil Prob
#4

You could do it this:
PHP код:
#define RANDOM_MINUTES  5 // 5 minutes for example
#DEFINE NUMBER_OF_MESSAGES 2 // 2 messages for example
SetTimer("RandomMessages"60000 RANDOM_MINUTEStrue); // on gamemodeinit
Forward RandomMessages(); // where ever you got your functions
Public RandomMessages()
{
     new 
message random (NUMBER_OF_MESSAGES);
    
Switch(
message)
{
 
     Case 
0:
{
 
       
SendClientMessageToAll(-1"This is random message 1");
}
Case 
1:
{
 
       
SendClientMessageToAll(-1"This is random message 2");
}
}
return 
1;

Reply


Messages In This Thread
Lil Prob - by CannonBolt - 28.09.2016, 11:48
Re: Lil Prob - by iLearner - 28.09.2016, 12:07
Re: Lil Prob - by CannonBolt - 28.09.2016, 12:14
Re: Lil Prob - by iLearner - 28.09.2016, 12:34
Re: Lil Prob - by CannonBolt - 28.09.2016, 12:37
Re: Lil Prob - by iLearner - 28.09.2016, 12:47
Re: Lil Prob - by CannonBolt - 28.09.2016, 12:50

Forum Jump:


Users browsing this thread: 3 Guest(s)