new Float:kilometer[MAX_VEHICLES] forward MasodpercesIdozito(vehicleid); public MasodpercesIdozito(vehicleid) { kilometer[vehicleid] += GetVehicleSpeed(vehicleid)*0.001; } stock GetVehicleSpeed( vehicleid ) { new Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,final_speed_int; GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z); 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); return final_speed_int; }