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


Messages In This Thread
Mass car spawn - by whiXґ - 29.04.2012, 14:28

Forum Jump:


Users browsing this thread: 3 Guest(s)