[Tutorial] Random Server messages (automated & Predefined)
#5

It is better to make so:

PHP код:
// function
@SendRandomMessageToAll();
@
SendRandomMessageToAll()
{
    new const
        
random_messages[][] =
    {
        
"I",
        
"am",
        
"sexy" // ;D
    
};
    
    
SendClientMessageToAll(-1random_messages[random(sizeof(random_messages))]);
    
SetTimer("@SendRandomMessageToAll"random(1_000 60_000), false);
}
// call function
SetTimer("@SendRandomMessageToAll"random(1_000 60_000), false); 
Reply


Messages In This Thread
Random Server messages (automated & Predefined) - by yvoms - 16.12.2015, 12:05
Re: Random Server messages (automated & Predefined) - by Dutheil - 16.12.2015, 15:33
Re: Random Server messages (automated & Predefined) - by yvoms - 16.12.2015, 16:27
Re: Random Server messages (automated & Predefined) - by Vince - 16.12.2015, 18:58
Re: Random Server messages (automated & Predefined) - by Untonyst - 16.12.2015, 19:11
Re: Random Server messages (automated & Predefined) - by vassilis - 20.12.2015, 16:22
Re: Random Server messages (automated & Predefined) - by saffierr - 22.12.2015, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)