[Ajuda] Habilitacao
#7

neste caso, й muito mais viбvel, utilizar a callback OnPlayerStateChange, do que OnPlayerEnterVehicle, pois no OnPlayerEnterVehicle, ele reconhece quando o player aperta F ou ENTER, nгo quando entra no veiculo, enfim, seria algo assim
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        //Variavel
        RemovePlayerFromVehicle(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
Habilitacao - by Serjnrg - 13.04.2013, 00:06
Re: Habilitacao - by Don_Speed - 13.04.2013, 00:16
Re: Habilitacao - by Serjnrg - 13.04.2013, 00:38
Re: Habilitacao - by Delete_ - 13.04.2013, 00:46
Re: Habilitacao - by Serjnrg - 13.04.2013, 00:50
Re: Habilitacao - by Smoking_Script - 13.04.2013, 11:25
Re: Habilitacao - by Jumper. - 13.04.2013, 12:02

Forum Jump:


Users browsing this thread: 2 Guest(s)