If any player is in vehicle?
#2

Quote:
Originally Posted by Runedog48
Посмотреть сообщение
The title says it all, is there a function to check if ANY player is in/driving that vehicle.
One example:
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
    for (new i = 0; i != MAX_PLAYERS; i++)
    {
        if(IsPlayerInAnyVehicle(i))
        {
            SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
        }
    }
    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: 3 Guest(s)