Can anyone give me a cmd
#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


Messages In This Thread
Can anyone give me a cmd - by LonMihawk - 29.05.2013, 07:26
Re: Can anyone give me a cmd - by Faisal_khan - 29.05.2013, 07:31
Re: Can anyone give me a cmd - by Stanford - 29.05.2013, 07:38
Re: Can anyone give me a cmd - by Faisal_khan - 29.05.2013, 07:39
Re: Can anyone give me a cmd - by LonMihawk - 29.05.2013, 07:58

Forum Jump:


Users browsing this thread: 2 Guest(s)