SA-MP Forums Archive
/rcon reloadbans? - 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: /rcon reloadbans? (/showthread.php?tid=579765)



/rcon reloadbans? - Rodri99 - 29.06.2015

If i do /rcon unbanip, then i do /rcon reloadbans, all old banned players get unban? or just the unbanned player?
Because i need to unban a player in game, then reloadbans, but not unbanning all others, it will work?


Re: /rcon reloadbans? - Abagail - 29.06.2015

No, it just reloads the samp.ban file. You do NOT need to reload bans after unbanning an IP in-game or through RCON. It is typically used when the samp.ban file is modified outside of the server.


Re: /rcon reloadbans? - Rodri99 - 29.06.2015

So i do just /rcon unbanip and not /rcon reloadbank after it?


Re: /rcon reloadbans? - Abagail - 29.06.2015

Yes. Unless you modify samp.bans outside of the server you don't need to reloadbans, though you can, it won't affect anything unless you actually make changes to the samp.bans file.


Re: /rcon reloadbans? - MohammedZ - 29.06.2015

you have to /unbanip [PLAYERBANNEDIP]
And then /reloadbans
reload bans just refreshes the ban list if you did any update
rconn unbanip unbans a certain player ip you give


Re: /rcon reloadbans? - Rodri99 - 29.06.2015

CMD:unbanip(playerid, params[]){
if(PlayerInfo[playerid][Level] >= 10 || IsPlayerAdmin(playerid)) {
new type[128], string[128];
if(sscanf(params, "s[128]", type)) SendClientMessage(playerid, red, "USAGE: /unbanip [IP]");
else
{
format(string, sizeof(string),"unbanip %s", type);
SendRconCommand(string);
//DO I NEED TO PUT RCON RELOADBANS, OR THE PLAYER CAN LOG AFTER UNBANIP WITHOUT RELOAD?
}
} else return SendClientMessage(playerid,red,"ERROR: You need to be level 10 to use this command");
return 1;
}





READ ABOVE THE SENDRCONCOMMAND, othwerise Thanks


Re: /rcon reloadbans? - Rodri99 - 29.06.2015

Yes but watch:


/rcon reloadbans - reloads the samp.ban where the banned IP addresses are stored. This will clear all the IP-addresses.

IT WILL DELETE ALL OTHER BANNEDs PLAYERS, THIS IS WROTE HERE