07.12.2012, 20:13
From that you've posted is this the func?
Код:
stock Float:GetDistanceVehicleFromPoint(vehicleid,float:pontox,float:pontoy,float:pontoz) { new Float:x,Float:y,Float:z; GetVehiclePos(vehicleid,x,y,z); return floatsqroot(floatpower(floatabs(floatsub(pontox,x)),2)+floatpower(floatabs(floatsub(pontoy,y)),2)+floatpower(floatabs(floatsub(pontoz,z)),2)); } stock GetDistanceTraveled(vehicleid) return Percorreu[vehicleid];