[Ajuda] Adicionar mais Pontos
#1

Esse й o sistema de Autorizaзгo para os advogados, sу que o comando sу funciona em certo ponto, ai eu queria adicionar mais pontos para pegar a autorizaзгo; me ajuda
Comando:
pawn Code:
if (strcmp(cmd, "/autorizacao", true) == 0)
    {
        if(PlayerInfo[playerid][pEmprego] == 2)
        {
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            if(PlayerToPoint(2.0, playerid, 256.0320,84.5082,1002.4453))
            {
                if(playerid != INVALID_PLAYER_ID)
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vocк comprou uma licenзa para liberar um preso -R$5000.");
                    GivePlayerMoney(playerid, -5000);
                    ApprovedAdvogado[playerid] = 1;
                }
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um Advogado.");
        }
        return 1;
    }
Reply
#2

faz a mesma coisa
pawn Code:
if(PlayerToPoint(2.0, playerid, 256.0320,84.5082,1002.4453) || PlayerToPoint(2.0, playerid, 256.0320,84.5082,1002.4453))
a coordenada que eu coloquei sу foi um exemplo sу substitua
Reply
#3

ai pra ficar mais bonitinho vocк tambйm coloca objetos pickup e o text
Reply
#4

Vlw deu certo =D
Reply
#5

Veja se vai funfar:
pawn Code:
if (strcmp(cmd, "/autorizacao", true) == 0)
    {
        if(PlayerInfo[playerid][pEmprego] == 2)
        {
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            if(playerid != INVALID_PLAYER_ID)
            {
            if(PlayerToPoint(2.0, playerid, 256.0320,84.5082,1002.4453))
            {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Você comprou uma licença para liberar um preso -R$5000.");
                    GivePlayerMoney(playerid, -5000);
                    ApprovedAdvogado[playerid] = 1;
                }
            if(PlayerToPoint(2.0, playerid, AS OUTRAS COORDENDAS AQUI...))
            {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE,"Você comprou uma licença para liberar um preso -R$5000.");
                    GivePlayerMoney(playerid, -5000);
                    ApprovedAdvogado[playerid] = 1;
                }
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "Voc? n?o ? um Advogado.");
        }
        return 1;
    }
Reply
#6

jб deu certo do meu jeito man
Reply
#7

LOL Ele tinha dito que nao tinha Funfado... ele @EDIT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)