How to check if a vehicle is being used?
#3

If you're going to need this frequently, then I would suggest creating a global MAX_VEHICLES array and setting the index to the playerid when he enters the vehicle. e.g.

pawn Код:
VehicleOccupied[vehicleid] = playerid;
Otherwise, just do a loop.
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
    if(IsPlayerInVehicle(i, vehicleid)) return i;
Reply


Messages In This Thread
How to check if a vehicle is being used? - by ricardo178 - 08.08.2012, 16:46
Re: How to check if a vehicle is being used? - by Roko_foko - 08.08.2012, 16:48
Re: How to check if a vehicle is being used? - by Vince - 08.08.2012, 16:59
Re : How to check if a vehicle is being used? - by ricardo178 - 08.08.2012, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)