Mass car spawn
#1

This anti car mass spawn is not banning the player because ?

pawn Код:
#include <a_samp>
/* car mass spawn anti cheat by Gamer_Z */
new PlayerEnterTime[MAX_PLAYERS];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        PlayerEnterTime[playerid] = GetTickCount();
    }
    else if(oldstate == PLAYER_STATE_DRIVER)
    {
        if((GetTickCount()-PlayerEnterTime[playerid]) < 220)//player entered and exited vehicle faster than 220 ms.
        {
            Ban(playerid);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)