01.07.2016, 03:24
Queria saber como converto essa velocidade (Milhas por hora) para Kilometros por hora
Код:
stock Float:GetPlayerSpeed(playerid) { static Float:velocity[3]; if (IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid), velocity[0], velocity[1], velocity[2]); else GetPlayerVelocity(GetPlayerVehicleID(playerid), velocity[0], velocity[1], velocity[2]); return floatsqroot((velocity[0] * velocity[0]) + (velocity[1] * velocity[1]) + (velocity[2] * velocity[2])) * 100.0; }