26.03.2018, 13:32
Create an enum for vehicles, in the enum store X Y Z and rot coordinates of every vehicle. Then simply do a if() check,
Код:
for(new k = 0; k < your_max_vehicles; k++) { if(IsPlayerInRangeOfPoint(playerid, 2, Car[k][XCoord], Car[k][YCoord], Car[k][ZCoord]) && vehicleid == id_of_fbi_rancher) { // Your Code here } }