[PEDIDO]cmd's
#6

Quote:
Originally Posted by Pharrel
Посмотреть сообщение
Considere um veiculo 4p, um passageiro sai e vai chamar a public onplayerexitveh, o loop vai passar e se tiver outro passageiro no carro vai sair tb...
bela observaзгo:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_PASSENGER)
            {
                RemovePlayerFromVehicle(i);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[PEDIDO]cmd's - by Moskito - 17.09.2011, 17:40
Re: [PEDIDO]cmd's - by [O.z]Caroline - 17.09.2011, 17:48
Re: [PEDIDO]cmd's - by Pharrel - 17.09.2011, 17:51
Re: [PEDIDO]cmd's - by [O.z]Caroline - 17.09.2011, 17:54
Re: [PEDIDO]cmd's - by Pharrel - 17.09.2011, 17:55
Re: [PEDIDO]cmd's - by [O.z]Caroline - 17.09.2011, 17:58

Forum Jump:


Users browsing this thread: 3 Guest(s)