AJUDA /DEMITIRSUB PARA SUB LIDER
#1

alguem me ajuda meu cmd nao funfa

Код:
    if(strcmp(cmd, "/Demitirsub", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "/Demitir [ID/NICK]");
                return 1;
            }
            new para1;
            para1 = ReturnUser(tmp);
            if (PlayerInfo[playerid][pMembro] > 0 && PlayerInfo[playerid][pCargo] >= 5)
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        if(PlayerInfo[para1][pMembro] == PlayerInfo[playerid][pLider])
                        {
                            if (PlayerInfo[para1][pMembro] > 0)
                            {
                                GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                format(string, sizeof(string), "* Voce foi demitido pelo lнder %s.", sendername);
                                SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                                SendClientMessage(para1, COLOR_LIGHTBLUE, "* Agora voce й um civil novamente.");
                                gTeam[para1] = 3;
                                PlayerInfo[para1][pTeam] = 3;
                                PlayerInfo[para1][pMembro] = 0;
                                PlayerInfo[para1][pCargo] = 0;
                                PlayerInfo[para1][pChar] = 0;
                                new rand = random(sizeof(CIV));
                                SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
                                PlayerInfo[para1][pModel] = CIV[rand];
                                MedicBill[para1] = 0;
                                SpawnPlayer(para1);
                                format(string, sizeof(string), "Voce demitiu %s.", giveplayer);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                                return 1;
                            }
                            if(PlayerInfo[para1][pMembro] != PlayerInfo[playerid][pLider])
                              {
                                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "Nгo pode promover quem naum e da sua org.");
                                  return 1;
                            }
                    }
                }
            }//not connected
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "Voce nгo й um lнder ou nгo pode demitir player de outra Org/Gang!");
        }
        }
    return 1;
    }
Reply


Messages In This Thread
AJUDA /DEMITIRSUB PARA SUB LIDER - by Homer_Tihuana - 08.10.2010, 19:30
Re: AJUDA /DEMITIRSUB PARA SUB LIDER - by Ricop522 - 08.10.2010, 22:03
Re: AJUDA /DEMITIRSUB PARA SUB LIDER - by Homer_Tihuana - 08.10.2010, 23:26
Re: AJUDA /DEMITIRSUB PARA SUB LIDER - by [VGS]Mlqd_Rock - 08.10.2010, 23:49

Forum Jump:


Users browsing this thread: 2 Guest(s)