Quote:
Originally Posted by Jakku
Is this efficient enough?
pawn Код:
GetVehicleSpeed(vehicleid) { new Float:Vx, Float:Vy, Float:Vz; GetVehicleVelocity(vehicleid, Vx, Vy, Vz); new Float:rtn; rtn = floatsqroot(floatpower(Vx*100,2) + floatpower(Vy*100,2)); rtn = floatsqroot(floatpower(rtn,2) + floatpower(Vz*100,2)); return floatround(rtn); }
|
Not really sure how to tell. Although, I need a function which can allow me to retrieve it in MPH and KPH.