Get all passangers from a specific vehicle?
#3

You could also just do:
pawn Код:
RemoveAllPassengers(vehicleid)
{
    foreach(new i: Player)
    {
        if(GetPlayerState(i) == PLAYER_STATE_PASSENGER && IsPlayerInVehicle(i, vehicleid))
        {
            RemovePlayerFromVehicle(i);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Get all passangers from a specific vehicle? - by Chrillzen - 30.03.2015, 15:48
Re: Get all passangers from a specific vehicle? - by Abagail - 30.03.2015, 15:53
Re: Get all passangers from a specific vehicle? - by CalvinC - 30.03.2015, 16:06
Re: Get all passangers from a specific vehicle? - by ikey07 - 30.03.2015, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)