Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock Float:GetVehicleSpeedFromVelocity(Float:x, Float:y, Float:z)
- {
- return floatmul(VectorSize(x, y, z), (type == EI_MATH_SPEED_KMPH
- ? 180.0
- : 111.846814));
- }
- stock Float:GetVehicleSpeed(vehicleid)
- {
- static
- Float:x,
- Float:y,
- Float:z
- ;
- GetVehicleVelocity(vehicleid, x, y, z);
- return GetVehicleSpeedFromVelocity(x, y, z);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement