anti cheat - 180* turn - help
#6

Its fully working on me, i tried that one.

pawn Код:
public OnPlayerUpdate(playerid)
{
  if(IsPlayerInAnyVehicle(playerid))
    {
        new currentveh, Float:angle;
        currentveh = GetPlayerVehicleID(playerid);
        GetVehicleZAngle(currentveh, angle);
        new str[32];
        format(str,32,"%f",angle);
        SendClientMessage(playerid,COLOR_ZOMBIE,str);
        if(floatround(angle) == floatround(LastA[playerid])+180 || floatround(angle) == floatround(LastA[playerid])-180)
        {
          SendClientMessage(playerid,COLOR_ZOMBIE," You did 180 !");
            //Kick(playerid);
            return 1;
        }
        LastA[playerid] = angle;
    }
    return 1;
}
The only problem is that, if you are steering left or right, it will not detect you.
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: 1 Guest(s)