[pedio] /pegarprof
#1

Como fasso emtal cordenada /pegarprof pega uma prof e outra cordenada outra prof ?
Reply
#2

Como assim ? Explica melhor ..
Reply
#3

putz nгo entendi calhordas do que vc disse ...
Reply
#4

/\2... explica melhor oq tu falo ae, manda tua fala pro portuguкs brasileiro e nгo portuguкs russo, italiano ou sei lб qualй tua lingua
Reply
#5

EM tal corrdenada eu coloco /pegarprof ele pega exemplo TAXISTA.. se eu tiver em outra coordenada o /pegarprof pega MECANICO exemplo
Reply
#6

Ah, entendi !

Faz assim:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/pegarprof", true) == 0)
    {
        If(IsPlayerConnected(playerid))
        {
            if(PlayerToPoint(RAIO, playerid, X, Y, Z))//NO LUGAR DE X, Y e Z, DO LUGAR QUE VOCК QUER E NO RAIO PONHA A DISTANCIA MAXIMA DESSAS COORDENADAS PARA ELE PODER USAR ESTE COMANDO
            {
                //FUNЗГO
                return 1;
            }
        }
    }
    return 1;
}
Reply
#7

Shadoww5: Seu cуdigo possui funзхes desnecessбrias e estб incorreto !!
................................

Olб JOKERBOY.

Tente isto:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/pegarprof", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, PosX, PosY, PosZ))
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "Agora sua nova profissгo й: Taxista");
            Profissao[playerid] = Taxista;
            return 0x1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, PosX, PosY, PosZ))
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "Agora sua nova profissгo й: Policial");
            Profissao[playerid] = Policial;
            return 0x1;
        }
        return 0x1;
    }
    return 0x0;
}

Atenciosamente,
Falcon.
Reply
#8

Obrigado Falcon !!
Reply
#9

Agora que eu ia responder, o Falcon jб resolveu (:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)