Get vehicle driver id???
#4

pawn Код:
stock WhoIsDriver(vehicleid)
{
    for(new i = 0; i < MAX_PLAYERS; i++) //Loops through all players
    {
        if(GetPlayerVehicleID(i) == vehicleid && GetPlayerState(i) == PLAYER_STATE_DRIVER) return i; //Returns playerid if the player is in the vehicleid provided AND is the driver
    }
    return 1;
}
Here, try this.
Reply


Messages In This Thread
Get vehicle driver id??? - by pasha97 - 22.07.2012, 10:23
Re: Get vehicle driver id??? - by Kindred - 22.07.2012, 10:27
Re: Get vehicle driver id??? - by pasha97 - 22.07.2012, 10:35
Re: Get vehicle driver id??? - by Kindred - 22.07.2012, 10:38
Re: Get vehicle driver id??? - by pasha97 - 22.07.2012, 10:54

Forum Jump:


Users browsing this thread: 3 Guest(s)