SA-MP Forums Archive
Can anyone give me a cmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can anyone give me a cmd (/showthread.php?tid=440299)



Can anyone give me a cmd - LonMihawk - 29.05.2013

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


Re: Can anyone give me a cmd - Faisal_khan - 29.05.2013

"Purge" a faction?


Re: Can anyone give me a cmd - Stanford - 29.05.2013

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;
    }



Re: Can anyone give me a cmd - Faisal_khan - 29.05.2013

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



Re: Can anyone give me a cmd - LonMihawk - 29.05.2013

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