01.03.2018, 05:50
Quote:
You didn't do your homework at all this function is incorrect but you can easily find the correct function on the forums.
Code:
Float:GetPlayerSpeed(playerid) { new Float:px, Float:py, Float:pz; GetVehicleVelocity(GetPlayerVehicleID(playerid), px, py, pz); return floatsqroot(floatpower(floatabs(px), 2.0) + floatpower(floatabs(py), 2.0) + floatpower(floatabs(pz), 2.0)) * 100; } Code:
public OnPlayerDisconnect(playerid, reason) { speedohide(playerid); return 1; } |