18.03.2015, 14:44
Timers are a lot more efficient than using OnPlayerUpdate, you can make a repeating timer to check for cheaters like this:
This will create a timer executing the code in MyPublic every second, 1000 milliseconds = 1 second.
pawn Код:
public OnGameModeInit()
{
SetTimer("MyPublic", 1000, true);
return 1;
}
forward MyPublic();
public MyPublic()
{
// Code
}