Onplayerupdate
#2

Timers are a lot more efficient than using OnPlayerUpdate, you can make a repeating timer to check for cheaters like this:
pawn Код:
public OnGameModeInit()
{
    SetTimer("MyPublic", 1000, true);
    return 1;
}

forward MyPublic();
public MyPublic()
{
    // Code
}
This will create a timer executing the code in MyPublic every second, 1000 milliseconds = 1 second.
Reply


Messages In This Thread
Onplayerupdate - by Rockyyy - 18.03.2015, 14:38
Re: Onplayerupdate - by CalvinC - 18.03.2015, 14:44
Re: Onplayerupdate - by Rockyyy - 18.03.2015, 14:56
Re: Onplayerupdate - by Rockyyy - 19.03.2015, 13:01
Re: Onplayerupdate - by Misiur - 19.03.2015, 13:28

Forum Jump:


Users browsing this thread: 2 Guest(s)