Check time
#1

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

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
}
Reply
#3

Oh, that was pretty simple. Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)