08.05.2012, 21:03
I want to remove forbidden names i have added. here is the script:
(from LuxAdmin)
I want a cmd /allowname or something to remove it from the forbiddennamelist.. How can I do that?
(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);
}