Can anyone give me a cmd
#1

can u give me the code of a cmd that can purge a faction?
Reply
#2

"Purge" a faction?
Reply
#3

Alright thats a command, but if I were you, I would show off some of my faction's system codes instead..

pawn Код:
if(strcmp(cmd, "/fdelete", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pGangMod] == 1 || PlayerInfo[playerid][pAdmin] >= 1337)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /fdelete [family]");
                new family = strval(tmp);

                if(family < 1 || family > 14) return SendClientMessage(playerid, COLOR_GREY, "Family slot cannot be under 1 or above 14.");
               
                family -= 1;
                //if(FamilyInfo[family][FamilyTaken] != 1) return SendClientMessage(playerid, COLOR_GREY, "That family slot is not taken.");

                format(string, sizeof(string), "You have deleted family slot %d.", family+1);
                SendClientMessage(playerid, COLOR_WHITE, string);
                ClearFamily(family);
            }
        }
        return 1;
    }
Reply
#4

Oh got it never mind.
For future references...
Код:
Purge - To remove (impurities and other elements) by or as if by cleansing.
Reply
#5

yes by removing all members in a faction for example if i do /purge 8 all hitman members will be kicked out from the faction
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)