Comparing two floats for anti-cheat
#3

Quote:
Originally Posted by Finn
pawn Код:
GetVehicleZAngle(GetPlayerVehicleID(playerid), AccountInfo[playerid][NewZAngle]);
if(floatabs(AccountInfo[playerid][NewZAngle] - AccountInfo[playerid][OldZAngle]) > 160)
{
  SendClientMessage(playerid,COLOR_RED,"O JEEZ, NOT THIS SHIT AGAIN!");
}
Try?
That should work
Reply


Messages In This Thread
Comparing two floats for anti-cheat - by Redirect Left - 15.09.2009, 02:06
Re: Comparing two floats for anti-cheat - by Finn - 15.09.2009, 09:06
Re: Comparing two floats for anti-cheat - by eXchainZ-FoReVeR - 15.09.2009, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)