If any player is in vehicle?
#8

Quote:
Originally Posted by Runedog48
Посмотреть сообщение
The title says it all, is there a function to check if ANY player is in/driving that vehicle.
PHP код:
VehicleHasPlayer(vehicleid, &player_seat = -1)
{
    for(new 
0GetMaxPlayers(); ji++)
        if(
IsPlayerConnected(i))
            if(
IsPlayerInVehicle(ivehicleid))
            {
                
player_seat GetPlayerVehicleSeat(i);
                return 
i;
            }
    return (-
1);

Reply


Messages In This Thread
If any player is in vehicle? - by Runedog48 - 19.07.2011, 20:54
Re: If any player is in vehicle? - by cruising - 19.07.2011, 20:57
Re: If any player is in vehicle? - by Runedog48 - 19.07.2011, 21:01
Re: If any player is in vehicle? - by cruising - 19.07.2011, 21:03
Re: If any player is in vehicle? - by Runedog48 - 19.07.2011, 21:03
Re: If any player is in vehicle? - by Steven82 - 19.07.2011, 21:11
Re: If any player is in vehicle? - by Runedog48 - 19.07.2011, 21:13
Re: If any player is in vehicle? - by MoroDan - 19.07.2011, 21:16
Re: If any player is in vehicle? - by Steven82 - 19.07.2011, 21:27
Re: If any player is in vehicle? - by Sasino97 - 19.07.2011, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)