Automatically
#2

PHP Code:

    
new randtime random(60000 30000)+30000//this generates a random number between 60,000 and 30,000
    
    
SetTimerEx("Grow"randtimefalse"i"playerid);




forward Grow(playerid);
public 
Grow(playerid)
{
    
//your code for the grow

    
new randtime random(60000 30000)+30000//this generates a random number between 60,000 and 30,000
    
    
SetTimerEx("Grow"randtimefalse"i"playerid);

That's how you would make a random timer between 1 minute and 30 seconds.
Reply


Messages In This Thread
Automatically - by Ahmadd - 09.07.2018, 17:53
Re: Automatically - by ItsRobinson - 09.07.2018, 20:31
Re: Automatically - by Ahmadd - 10.07.2018, 06:56
Re: Automatically - by JasonRiggs - 10.07.2018, 06:59
Re: Automatically - by Ahmadd - 10.07.2018, 08:07
Re: Automatically - by Ahmadd - 10.07.2018, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)