SA-MP Forums Archive
[Ajuda] Veiculos Proibidos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Veiculos Proibidos (/showthread.php?tid=375167)



Veiculos Proibidos - GhosT_[] - 05.09.2012

Olб pessoal da forum samp preciso de uma ajuda.

й assim queria que os admins level3 podessem usar os veiculos proibidos,fiz este code mas nгo deu certo '-'

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
        switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
        {
            case 447,520,432,425:
            {
                if(PlayerInfo[playerid][pAdmin] > 3) return SendClientMessage(playerid , 0x33CCFFAA, "ERRO: Vocк pode pegar este veiculo"),
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
oque tem de errado?

Agradeзo desde jб


Re: Veiculos Proibidos - .FuneraL. - 05.09.2012

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
        switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
        {
            case 447,520,432,425:
            {
                if(PlayerInfo[playerid][pAdmin] < 3)
                {
                     SendClientMessage(playerid , 0x33CCFFAA, "ERRO: Vocк Nгo pode pegar este veiculo"),
                     RemovePlayerFromVehicle(playerid);
                }
            }
        }
    }



Re: Veiculos Proibidos - Kmatsu - 05.09.2012

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
    switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
    {
        case 447,520,432,425:
        {
            if(PlayerInfo[playerid][pAdmin] < 3)
            {
                SendClientMessage(playerid , 0x33CCFFAA, "ERRO: Vocк pode pegar este veiculo"),
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
}



Re: Veiculos Proibidos - ViniBorn - 05.09.2012

Coloque assim
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 3)
{
    SendClientMessage(playerid , 0x33CCFFAA, "ERRO: Vocк nгo pode pegar este veiculo"),
    RemovePlayerFromVehicle(playerid);
}



Re: Veiculos Proibidos - GhosT_[] - 05.09.2012

Obrigado a todos