Speedhack
#5

Not sure if this will work, but it's worth a try.

First add the code Adas gave you.
Код:
stock Float:GetPlayerSpeed(playerid, bool:Z = true)
{
new Float:SpeedX, Float:SpeedY, Float:SpeedZ;
new Float:Speed;
if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid), SpeedX, SpeedY, SpeedZ);
else GetPlayerVelocity(playerid, SpeedX, SpeedY, SpeedZ);
if(Z) Speed = floatsqroot(floatadd(floatpower(SpeedX, 2.0), floatadd(floatpower(SpeedY, 2.0), floatpower(SpeedZ, 2.0))));
else Speed = floatsqroot(floatadd(floatpower(SpeedX, 2.0), floatpower(SpeedY, 2.0)));
return floatmul(Speed, 200.0);
}
Then after that add:

Код:
public OnPlayerUpdate(playerid)
{
  if(GetPlayerSpeed(playerid, false) > 325.0)
  {
	if(!IsPlayerAdmin(playerid))
	{
	  // Anything here you'll add for a ban or kick.
	  return 1;
	}
	return 1;
  }
  return 1;
}
Hope it works.
Reply


Messages In This Thread
Speedhack - by DarkPower - 16.03.2010, 14:48
Re: Speedhack - by woot - 16.03.2010, 15:09
Re: Speedhack - by ¤Adas¤ - 16.03.2010, 15:48
Re: Speedhack - by DarkPower - 16.03.2010, 18:47
Re: Speedhack - by AK47KILLA - 17.03.2010, 16:17
Re: Speedhack - by biltong - 17.03.2010, 16:26
Re: Speedhack - by AK47KILLA - 17.03.2010, 16:29
Re: Speedhack - by biltong - 17.03.2010, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)