Make A Spido
#3

A fast search and i found this function made by Misco:

Код:
stock GetPlayerSpeed(playerid, bool:kmh) // by misco
{
  new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
  if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
  rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
  return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
Now just use this in a textdraw.
Reply


Messages In This Thread
Make A Spido - by whitedragon - 20.06.2010, 19:42
Re: Make A Spido - by Dolph - 20.06.2010, 19:56
Re: Make A Spido - by Naxix - 20.06.2010, 20:03
Re: Make A Spido - by Dolph - 20.06.2010, 20:05
Re: Make A Spido - by Naxix - 20.06.2010, 20:06
Re: Make A Spido - by whitedragon - 21.06.2010, 06:08
Re: Make A Spido - by ledzep - 21.06.2010, 06:10

Forum Jump:


Users browsing this thread: 1 Guest(s)