Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by LocMax
Well this is basically one example how it does:
pawn Code:
if(PlayerInfo[i][Jail] > 0) PlayerInfo[i][Jail]--; else if(PlayerInfo[i][Jail] == 0) { unjail }
So you think it'd be better if it was OnPlayerUpdate?
Performance-wise, wouldn't make any lag and so on?
|
This example should DEFINITLY be done in OnPlayerUpdate. However, you need to use time checking instead of constantly reducing. You need to use timestamps.