01.05.2013, 12:37
Код:
new iveh; new Float:vehpos[ 3 ]; for(iveh = 1; iveh < MAX_VEHICLES; iveh++) { GetVehiclePos(iveh, vehpos[ 0 ], vehpos[ 1 ], vehpos[ 2 ] ); if( IsPlayerInRangeOfPoint(playerid, 8.0, vehpos[ 0 ], vehpos[ 1 ], vehpos[ 2 ] ) ) { // you can do all what you want, here script find a vehicle, which is near you. } }