SA-MP Forums Archive
Help! payday timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help! payday timer (/showthread.php?tid=470367)



Help! payday timer - cuemur - 17.10.2013

PHP код:
stock Timer()
{
    new 
newhour,newminute,newsecond;
    new 
random_time 35+random(25);  // 1000-2000
    
gettime(newhournewminutenewsecond);
    if ((
newminute gminute+random_time) || (newhour == && ghour == 23))
    {
        
ghour newhour;
        
PayDayTime();
        
SetWorldTime(newhour);
    }

I need that payday get payed in random time after 30minutes+randomtime(till 30min).