new Float:Milleage[MAX_VEHICLES];
new Float:ST[4], vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleVelocity(vehicleid,ST[0],ST[1],ST[2]);
ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625;
Milleage[vehicleid] += ST[3]/2000;
pawn Код:
pawn Код:
Hopefully I helped you. |