detecting speed cheat
#6

Try to place a new function called GetVehicleXYSpeed, where to calculate only x and y axis speed.
pawn Код:
stock Float:GetVehicleXYSpeed(vehicleid,UseMPH = 0)
{
     new Float:speed_x,Float:speed_y,Float:speed_z,Float:temp_speed;
     GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z); if(UseMPH == 0)
     {
          temp_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))*140.666667;
     }
     else
     {
          temp_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))*85.4166672;
     }
     floatround(temp_speed,floatround_round);
     return temp_speed;
}
And use this callback to check only X and Y axis.
Reply


Messages In This Thread
detecting speed cheat - by ajwar - 28.08.2013, 12:24
Re: detecting speed cheat - by Dragonsaurus - 28.08.2013, 12:29
Re: detecting speed cheat - by ajwar - 28.08.2013, 12:31
Re: detecting speed cheat - by CutX - 28.08.2013, 12:35
Re: detecting speed cheat - by ajwar - 28.08.2013, 12:38
Re: detecting speed cheat - by Dragonsaurus - 28.08.2013, 12:42

Forum Jump:


Users browsing this thread: 2 Guest(s)