anti cheat - 180* turn - help
#2

What if you add that code on OnPlayerUpdate? It will be more accurate
pawn Код:
if(IsPlayerInAnyVehicle(i))
            {
                new currentveh;
                currentveh = GetPlayerVehicleID(i);
                GetVehicleZAngle(currentveh, angle);
                //new str[32];
                //format(str,32,"%f",angle);
                //SendClientMessage(i,COLOR_RED,str);
                if(floatround(angle) == floatround(LastA[i])+180 || floatround(angle) == floatround(LastA[i])-180)
                {
                    Kick(i);
                    break;
                }
                LastA[i] = angle;
            }
Also nice idea!
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)