SA-MP Forums Archive
Check time - 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: Check time (/showthread.php?tid=461586)



Check time - siemka321 - 02.09.2013

Does anyone know how to check if it's the time? Example: A pickup only responds on 7 PM.(19:00)


Re: Check time - Konstantinos - 02.09.2013

A timer that would check is needed.
pawn Код:
new
    Hour,
    Minute,
    Second
;
gettime( Hour, Minute, Second );
if( Hour == 19 && Minute == 0 )
{
    // It's 7 PM (19:00)
    // Do your code here
}



Re: Check time - siemka321 - 02.09.2013

Oh, that was pretty simple. Thanks