Reload bans
#1

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?
Reply
#2

/rcon reloadbans
Reply
#3

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

Then type /rcon reloadbans
Reply
#4

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...
Reply
#5

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
Reply
#6

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)