11.03.2012, 16:00
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); }