20.06.2015, 16:04
Quote:
Well this is basically one example how it does:
pawn Code:
Performance-wise, wouldn't make any lag and so on? |
You can optimize it:
pawn Code:
if(GetTickCount() > PlayerInfo[i][JailReleaseTick) { unjail }
Though there is a function call in the above code, it hardly makes any difference.You can make a local variable and call GetTickCount just once and use the same tick for other checks.
At end of the thread, cessil uses OPU for making a SYNC System and for many anti-cheat checks.
https://sampforum.blast.hk/showthread.php?tid=220089
Quote:
wouldn't make any lag and so on |
I use OPU for most of the simple anti-cheat checks and it does no harm!
I am guessing that using many timers will internally slow down the server because it needs to check every timer in every server tick!