20.06.2016, 04:02
File is not deleted after executing the command
no clue why
Anyone ?
no clue why
Anyone ?
PHP Code:
CMD:clearbans(playerid)
{
if(!IsAuth(playerid, 6)) return NoAuth(playerid);
fremove("bans.cfg");
new File:file = fopen("bans.cfg", io_readwrite);
fclose(file);
new string[128];
format(string, sizeof(string), "AdmCmd: %s %s has cleared the ban list, therefore, everyone have been unbanned.", RPARN(playerid), RPN(playerid));
Log("unban.log", string);
SendAMessage(1, string);
return 1;
}