Posts: 439
Threads: 62
Joined: Apr 2012
Title says it..
And when you send the Rcon command to reload bans, does it get rid of all the bans or just the IP you chose to unban?
Posts: 873
Threads: 5
Joined: Apr 2012
Reputation:
0
Just IP that you unbanned/banned. Example: /rcon banip 127.0.0.1 /rcon reloadbans.
Posts: 439
Threads: 62
Joined: Apr 2012
So would you send the RconCommand BanIP?
Posts: 439
Threads: 62
Joined: Apr 2012
Ah okay.. And then if you was to unban an IP it'd be:
pawn Код:
CMD:unbanip(playerid, params[])
{
new
iStr[32],
IP[16]
;
if(sscanf(params, "s[24]", IP)) return SendClientMessage(playerid, -1, "Usage: /unbanip [IP]");
format(iStr, sizeof(iStr),"unbanip %s", IP);
SendRconCommand(iStr);
SendRconCommand("reloadbans");
return 1;
}
Posts: 439
Threads: 62
Joined: Apr 2012
Thanks;
Another question..
If you done /ban playerid
how would you do it so it'd automatically ban the players IP?
Posts: 873
Threads: 5
Joined: Apr 2012
Reputation:
0
Ban(playerid); = Bans players IP.
Posts: 1,022
Threads: 207
Joined: Aug 2011
Reputation:
0
well you do know that all servers has /rcon banip and /rcon unbanip, right..?
Posts: 439
Threads: 62
Joined: Apr 2012
Yes.. But I wouldn't give my administrative team my RCON password...