[Ajuda] veiculo profissao
#8

eu troque do onplayerenterveicle para onplayerstatechange
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate==PLAYER_STATE_DRIVER)
    {
        if (GetPlayerVehicleID(playerid) == caminhao[0])
        {
            if(Player[playerid][Profissao]!=1)
            {
                ClearAnimations ( playerid ) ;
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid,COR_VERMELHO,"Vocк nгo й um Caminhoneiro");
            }
        }

    }

    return 1;
}
Reply


Messages In This Thread
veiculo profissao - by pjfPedro - 27.04.2020, 01:31
Re: veiculo profissao - by pjfPedro - 27.04.2020, 01:41
Re: veiculo profissao - by RayanSanty - 27.04.2020, 01:44
Re: veiculo profissao - by Hatiro - 27.04.2020, 01:45
Re: veiculo profissao - by RayanSanty - 27.04.2020, 01:47
Re: veiculo profissao - by pjfPedro - 27.04.2020, 01:48
Re: veiculo profissao - by pjfPedro - 27.04.2020, 01:54
Re: veiculo profissao - by pjfPedro - 27.04.2020, 02:14
Re: veiculo profissao - by Hatiro - 27.04.2020, 02:52
Re: veiculo profissao - by pjfPedro - 27.04.2020, 11:27

Forum Jump:


Users browsing this thread: 1 Guest(s)