Is it possible to check if there is a person in a specific vehicle?
#1

Is it possible to check if there is a person in a specific vehicle?
Reply
#2

Код:
IsAnyPlayerInVehicle(vehicleid)
{
  for (new i = 0; i != MAX_PLAYERS; i++)
  {
    if (IsPlayerInVehicle(i, vehicleid)) return 1;
  }
  return 0;
}
Reply
#3

Quote:
Originally Posted by BeckzyBoi
Код:
IsAnyPlayerInVehicle(vehicleid)
{
  for (new i = 0; i != MAX_PLAYERS; i++)
  {
    if (IsPlayerInVehicle(i, vehicleid)) return 1;
  }
  return 0;
}
Thanks
Reply
#4

Quote:
Originally Posted by BeckzyBoi
Код:
IsAnyPlayerInVehicle(vehicleid)
{
  for (new i = 0; i != MAX_PLAYERS; i++)
  {
    if (IsPlayerInVehicle(i, vehicleid)) return 1;
  }
  return 0;
}
a bit wrong its IsPlayerInAnyVehicle
Reply
#5

Quote:
Originally Posted by _Saif_
Quote:
Originally Posted by BeckzyBoi
Код:
IsAnyPlayerInVehicle(vehicleid)
{
  for (new i = 0; i != MAX_PLAYERS; i++)
  {
    if (IsPlayerInVehicle(i, vehicleid)) return 1;
  }
  return 0;
}
a bit wrong its IsPlayerInAnyVehicle
IsPlayerInAnyVehicle checks to see if the specified player is in a vehicle. IsAnyPlayerInVehicle checks to see if there is a player in the specified vehicle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)