30.04.2014, 23:42
I am a computing system for a km-system, except that when I go by car it does nothing.
Here is my calculation:
Here is my calculation:
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
#define Reglage_Vitesse 4
new Float:DistanceVitesse = floatsqroot(floatpower(floatabs(floatsub(x, x)), 2) + floatpower(floatabs(floatsub(y, y)), 2));
new vitesse = (floatround(DistanceVitesse)*Reglage_Vitesse);