[FilterScript] AntiOnFootCrasher
#5

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
            new Float:vector[3];
            GetPlayerCameraFrontVector(playerid, vector[0], vector[1], vector[2]);
            new bool:crash = false;
            for(new i = 0; !crash && i < sizeof(vector); i++)
            {
                if(floatabs(vector[i]) > 10.0)
                {
                    crash = true;
                }
            }
            if(crash)
            {
                Kick(playerid);
                return 0;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
AntiOnFootCrasher - by kaZax - 22.07.2013, 06:47
Re: AntiOnFootCrasher - by dEcooR - 22.07.2013, 08:29
Re: AntiOnFootCrasher - by [FMJ]The_Boss - 22.07.2013, 11:07
Re: AntiOnFootCrasher - by Vanter - 24.07.2013, 03:13
Respuesta: AntiOnFootCrasher - by Glimma - 24.07.2013, 03:35
Re: AntiOnFootCrasher - by dEcooR - 11.08.2013, 06:28
Re: AntiOnFootCrasher - by MAC97 - 11.08.2013, 22:42

Forum Jump:


Users browsing this thread: 1 Guest(s)