Forbidname [help]
#1

I want to remove forbidden names i have added. here is the script:

(from LuxAdmin)
pawn Код:
dcmd_forbidname(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 4)
    {
        if(!strlen(params)) return
        SendClientMessage(playerid, LIGHTBLUE2, "Usage: /forbidname [Name]") &&
        SendClientMessage(playerid, orange, "Function: Will block a specified Name");
        new File:BLfile, string[128];
        BLfile = fopen("LuxAdmin/Config/ForbiddenNames.cfg",io_append);
        format(string,sizeof(string),"%s\r\n",params[1]);
        fwrite(BLfile,string);
        fclose(BLfile);
        UpdateConfig();
        SendCommandToAdmins(playerid,"ForbidName");
        format(string, sizeof(string), "|- |Admin| ( \"%s\" ) has added the Name ( \"%s\" ) to the BLACKLIST", pName(playerid), params);
        return MessageToAdmins(green,string);
    }
    else return ErrorMessages(playerid, 5);
}
I want a cmd /allowname or something to remove it from the forbiddennamelist.. How can I do that?
Reply


Messages In This Thread
Forbidname [help] - by Kudoz - 08.05.2012, 21:03
Re: Forbidname [help] - by warcodes_ - 08.05.2012, 21:27
Re: Forbidname [help] - by Infinity90 - 08.05.2012, 21:29
Re: Forbidname [help] - by Kudoz - 08.05.2012, 21:32
Re: Forbidname [help] - by warcodes_ - 08.05.2012, 21:50
Re: Forbidname [help] - by ReneG - 08.05.2012, 22:36

Forum Jump:


Users browsing this thread: 4 Guest(s)