SA-MP Forums Archive
[ajuda]Profissao :S - 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]Profissao :S (/showthread.php?tid=323945)



[ajuda]Profissao :S - lyllrasta - 07.03.2012

Bom fiz uma parada para mototaxi e taxista usar o mesmo comando.
Mais no entando sу o Taxista Consegue usar o comando.
pawn Код:
CMD:batercartao(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 1760.7625,-1885.8522,13.5554))
    {
        if(PlayerProf[playerid] != 1 || 2 ) return SendClientMessage(playerid,C_MSG,"Vocк nгo й um Taxista, Ou um MotoTaxi");
        if(TaxiCartao[playerid] == true) return SendClientMessage(playerid, -1, "{5FFF00}Vocк Ja Bateu Cartao");
        if(TaxiCartao[playerid] == false)
        {
            new linha[128],
                pnome[MAX_PLAYER_NAME]
            ;
            GetPlayerName(playerid, pnome, sizeof(pnome));
            SendClientMessage(playerid, 0xFFD200FF, "Vocк iniciou seu trabalho {6E00FF}(TAXISTA) OU (MOTOTAXI)");
            format(linha, sizeof(linha), "{004BFF}O Player {FFA000}%s {004BFF}Comeзou o seu turno, Para Chamar um Taxi ou MotoTaxi digite{FFA000}(/chamartaxi)",pnome);
            SendClientMessageToAll( -1,  linha);
            TaxiCartao[playerid] = true;
        }
    }
    else
    {
        SendClientMessage(playerid, C_MSG, "Vocк Nгo esta No Local Certo");
    }
    return 1;
}



Re: [ajuda]Profissao :S - KinX - 07.03.2012

Fale o ID das prof


Re: [ajuda]Profissao :S - zbt - 07.03.2012

if ( PlayerProf[playerid] == 1 || PlayerProf [playerid] == 2 ) //irб usar


Re: [ajuda]Profissao :S - lyllrasta - 07.03.2012

Quote:
Originally Posted by zbt
Посмотреть сообщение
if ( PlayerProf[playerid] == 1 || PlayerProf [playerid] == 2 ) //irб usar
Nao funfo man.
id da prof й 1 e a 2 !


Re: [ajuda]Profissao :S - paulor - 07.03.2012

pawn Код:
if(PlayerProf[playerid] != 1 && PlayerProf[playerid] != 2 ) return SendClientMessage(playerid,C_MSG,"Vocк nгo й um Taxista, Ou um MotoTaxi");



Re: [ajuda]Profissao :S - lyllrasta - 07.03.2012

Quote:
Originally Posted by paulor
Посмотреть сообщение
pawn Код:
if(PlayerProf[playerid] != 1 && PlayerProf[playerid] != 2 ) return SendClientMessage(playerid,C_MSG,"Vocк nгo й um Taxista, Ou um MotoTaxi");
Funfo Vlw + rep ta tu =)


Re: [ajuda]Profissao :S - paulor - 07.03.2012

Nds...