SA-MP Forums Archive
Reload bans - 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: Reload bans (/showthread.php?tid=329186)



Reload bans - Dripac - 27.03.2012

Is it possible to get unbanned (by deleting samp.ban), but not to restart the server?

So is it possible to reload the samp.ban file?


Re: Reload bans - tyler12 - 27.03.2012

/rcon reloadbans


Re: Reload bans - captainjohn - 27.03.2012

Login into the rcon first via this command
/rcon login RCONPASSWORD

Then type /rcon reloadbans


Re: Reload bans - Twisted_Insane - 27.03.2012

Here, I've created a command for you! :P

pawn Код:
CMD:unbanip(playerid,params[])
{
    new ip[32], dformat[64];
    if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid,COLOR_ORANGE,"You need to be level 5 to use that command!"); //replace this with your own enum
    if(sscanf(params,"s[32]",ip)) return SendClientMessage(playerid,COLOR_CYAN,"USAGE: /unbanip [ip]");
    format(dformat,sizeof dformat,"unbanip %s",ip);
    SendRconCommand(dformat);
    SendRconCommand("reloadbans");
    SendClientMessage(playerid,COLOR_CYAN,"Successfully unbanned IP!");
    return 1;
}
^That's much more useful...


Re: Reload bans - captainjohn - 27.03.2012

To use that code above, you will need the ZCMD plugin.

Download it here and follow the instructions on how to install it.
https://sampforum.blast.hk/showthread.php?tid=91354


Re: Reload bans - Dripac - 27.03.2012

Thanks