anti cheat - 180* turn - help
#7

sometimes it does detect if your turning, sometimes it doesn't (for me)

heres my code:

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerSpawned[playerid] == 1)
        {
            if(IsPlayerInAnyVehicle(playerid))
            {
                new Float:angle;
                new currentveh;
                currentveh = GetPlayerVehicleID(playerid);
                GetVehicleZAngle(currentveh, angle);
                if((floatround(angle) == floatround(LastA[playerid])+180) || (floatround(angle) == floatround(LastA[playerid])-180))
                {
                    AC_Kill(playerid);
                }
                LastA[playerid] = angle;
            }
        }
    }
    return 1;
}
some of the functions are mine so you want have them.
Reply


Messages In This Thread
anti cheat - 180* turn - help - by StrickenKid - 18.04.2009, 22:08
Re: anti cheat - 180* turn - help - by Dark_Kostas - 18.04.2009, 22:11
Re: anti cheat - 180* turn - help - by Weirdosport - 18.04.2009, 22:12
Re: anti cheat - 180* turn - help - by StrickenKid - 18.04.2009, 22:13
Re: anti cheat - 180* turn - help - by StrickenKid - 18.04.2009, 22:24
Re: anti cheat - 180* turn - help - by Dark_Kostas - 18.04.2009, 22:35
Re: anti cheat - 180* turn - help - by StrickenKid - 18.04.2009, 22:39
Re: anti cheat - 180* turn - help - by yom - 18.04.2009, 22:40
Re: anti cheat - 180* turn - help - by Joe Staff - 18.04.2009, 23:49
Re: anti cheat - 180* turn - help - by StrickenKid - 19.04.2009, 00:32

Forum Jump:


Users browsing this thread: 2 Guest(s)