IsVehicleEmpty(carid) function
#4

Might try this:

pawn Код:
stock IsVehicleEmpty(vehicleid)
{
  for(new i; i < MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == vehicleid) return 0;
  }
  return 1;
}
Unsure about it though.
Reply


Messages In This Thread
IsVehicleEmpty(carid) function - by ikey07 - 15.07.2010, 18:42
Re: IsVehicleEmpty(carid) function - by bigcomfycouch - 15.07.2010, 18:48
Re: IsVehicleEmpty(carid) function - by ikey07 - 15.07.2010, 19:03
Re: IsVehicleEmpty(carid) function - by Hiddos - 15.07.2010, 19:04
Re: IsVehicleEmpty(carid) function - by ikey07 - 15.07.2010, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)