21.04.2015, 17:25
On my own include, I use this method:
and works.
PHP код:
stock Float:getPlayerSpeed(playerid)
{
new Float:x, Float:y, Float:z;
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
return (floatsqroot(x * x + y * y + z * z) * 180.00);
}
return 0.0;
}