19.07.2010, 14:38
pawn Code:
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
final_speed_int = floatround(final_speed,floatround_round);
And also, such a calculation is quite hard on a callback called 30 times a second, speed is needed in such cases.
Though, I myself would prefer a seperate timer than OPU, because calling the above code 30 times a second for every player connected is bad.