Need a help
#2

Try this
Код:
stock GetPlayerSpeed(playerid)
{
  new Float:x,Float:y,Float:z;
  if(IsPlayerInAnyVehicle(playerid))
GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
else
GetPlayerVelocity(playerid,x,y,z);
return floatround((ServerVariables[SPEED_3D]?floatsqroot(x*x+y*y+z*z):floatsqroot(x*x+y*y))*100.0*1.6);
}
Reply


Messages In This Thread
Need a help - by [HRD]Mar1 - 11.03.2012, 15:58
Re: Need a help - by mrskull42 - 11.03.2012, 16:00
Re : Need a help - by [HRD]Mar1 - 11.03.2012, 16:03
Re: Need a help - by CmZxC - 11.03.2012, 16:15
Re : Need a help - by [HRD]Mar1 - 11.03.2012, 16:20

Forum Jump:


Users browsing this thread: 2 Guest(s)