17.05.2018, 21:59
Quote:
No, there is no function. BUT
You can try making a 1 second timer that is looping stock GetVehicleSpeed(vehicleid) { if(vehicleid != INVALID_VEHICLE_ID) { new Float:Pos[3],Float:VS ; GetVehicleVelocity(vehicleid, Pos[0], Pos[1], Pos[2]); VS = floatsqroot(Pos[0]*Pos[0] + Pos[1]*Pos[1] + Pos[2]*Pos[2])*200; return floatround(VS,floatround_round); } return INVALID_VEHICLE_ID; } [/PHP] |