10.04.2019, 03:36
PHP Code:
Prox_Vehicle(playerid){
new Float:v_pos[3];
for(new v = 0; v < GetVehiclePoolSize(); v++){
GetVehiclePos(v, v_pos[0], v_pos[1], v_pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 10.5, v_pos[0], v_pos[1], v_pos[2]))
return i;
}
return -1;
}