26.03.2011, 16:45
I doubt it`ll work.
Try using like:
And set a timer, once at minute, on gamemode init, like:
What does this do? It checks every minute, if the new 'minutes' is 00 ... which means, that only at :00 you`ll get paycheck. Don`t worry about few seconds delay.
Try using like:
pawn Код:
forward PaydayTime();
public PaydayTime()
new hh, mm, ss;
gettime( hh, mm, ss );
if( mm == 0 )
{
//blabla, your code here
pawn Код:
SetTimer( "PaydayTime", 60000, true );