[Ajuda]CMD
#3

Quote:
Originally Posted by [Full
Garfield[XDB] ]
Vocк quer Digitar Um comando para Aзхes diferentes ?

Bota:
pawn Код:
}

     else{
Nada Disso...
Coloca os Dois Comandos Iguais Sacas?
pawn Код:
if(strcmp(cmd,"/decodificar",true)==0)
  {
    if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5||PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11||PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14||PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15||PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
        {
        if(!IsPlayerInRangeOfPoint(playerid , 2, 1445.1947,-979.6173,57.5156)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк nгo estб na porta do Cassino !");
        if(IsPlayerInRangeOfPoint(playerid , 2, 1445.1947,-979.6173,57.5156))
        {
      if (decodificado2 == 1)
            {
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"A porta ja foi decodificada e estб aberta!");
            return 1;
        }
        if (decodificando[playerid] == 1)
            {
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vocк ja estб decodificando a porta!");
            return 1;
        }
        GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "*** %s tenta decodificar a porta.", sendername);
            ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      SetTimerEx("decodificar2",10000,0,"i",playerid);
      decodificando2[playerid] = 1;
      WantedPoints[playerid]+=2;
        SetPlayerCriminal(playerid,255,"Decodificar a porta do Banco");
        }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo faz parte de uma Gang !");
        }

    return 1;
    }
E:

pawn Код:
if(strcmp(cmd,"/decodificar",true)==0)
  {
    if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5||PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11||PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14||PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15||PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
        {
        if(!IsPlayerInRangeOfPoint(playerid , 2, 2148.9299,1605.7605,1006.1743)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк nгo estб na porta do Cassino !");
        if(IsPlayerInRangeOfPoint(playerid , 2, 2148.9299,1605.7605,1006.1743))
        {
      if (decodificado == 1)
            {
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"A porta ja foi decodificada e estб aberta!");
            return 1;
        }
        if (decodificando[playerid] == 1)
            {
            SendClientMessage(playerid, COLOR_LIGHTBLUE,"Vocк ja estб decodificando a porta!");
            return 1;
        }
        GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "*** %s tenta decodificar a porta.", sendername);
            ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
      SetTimerEx("decodificar",10000,0,"i",playerid);
      decodificando[playerid] = 1;
      WantedPoints[playerid]+=2;
        SetPlayerCriminal(playerid,255,"Decodificar a porta do Cassino");
        }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo faz parte de uma Gang !");
        }

    return 1;
    }
Reply


Messages In This Thread
[Ajuda]CMD - by Brunow - 05.05.2010, 22:57
Re: [Ajuda]CMD - by zSuYaNw - 06.05.2010, 00:31
Re: [Ajuda]CMD - by ipsBruno - 06.05.2010, 00:52
Re: [Ajuda]CMD - by andmeida10 - 06.05.2010, 13:31
Re: [Ajuda]CMD - by keller012 - 06.05.2010, 17:46
Re: [Ajuda]CMD - by andmeida10 - 06.05.2010, 17:54
Re: [Ajuda]CMD - by keller012 - 06.05.2010, 18:33
Re: [Ajuda]CMD - by Brunow - 07.05.2010, 02:56

Forum Jump:


Users browsing this thread: 1 Guest(s)