Unban of players - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unban of players (
/showthread.php?tid=95583)
Unban of players -
Master_FM - 04.09.2009
Hi i have the normal Ban player
But how i can unban a person without restarting the server? I tried to unban him as rcon admin but he is still in the samp.ban list
i tried /rcon unban IP
and /unban IP but both doesnt work
Have anyone a idea how to unban anyone without stop server?
Re: Unban of players -
Calgon - 04.09.2009
/rcon unbanip (their IP)
/rcon reloadbans
reloadbans reloads the samp.ban list.
Re: Unban of players -
Master_FM - 04.09.2009
Okay the reload work, but the unban didnt work... I dont know why... He is in the samp.ban list
I hope anyone can help me
Re: Unban of players -
Butilka - 04.09.2009
Open samp.ban, delete him(her) IP adress, save, and type in console "reloadbans", or in the game "/rcon reloadbans" (You need to login first using "/rcon login rconpassword".
Re: Unban of players -
Master_FM - 04.09.2009
Okay that i understood and that is working and is their any chance to make everything on a server or must i do it everytime this way?
Re: Unban of players -
Butilka - 04.09.2009
Yes. You can do it in the game, but using rcon in the game you can unban player only if you know his IP adress. Opening the samp.ban file (e.g. with simple Notepad) you can unban player even if you know nickname. Just find it and you will see a string with IP and nickname.
Re: Unban of players -
Master_FM - 04.09.2009
Quote:
Originally Posted by Butilka
Yes. You can do it in the game, but using rcon in the game you can unban player only if you know his IP adress. Opening the samp.ban file (e.g. with simple Notepad) you can unban player even if you know nickname. Just find it and you will see a string with IP and nickname.
|
Yes but if i log in as rcon iG /rcon login pw
After that i write /rcon unban IP
it didnt work!
Maybe something wrong what i do?
Re: Unban of players -
Butilka - 04.09.2009
You did all right. Maybe IP is wrong or smth else.
Re: Unban of players -
The_Tough - 04.09.2009
Why don't you create administration filterscript instead using the /rcon ban ?
look using dcmd
Код:
dcmd_unbanip(playerid,params[]) {
if(PlayerData[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
{
new adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminname,sizeof(adminname));
if(!strlen(params)) return msg(playerid,"Correct usage : /unbanip <IP>");
new string[76];
format(string,sizeof(string),"unbanip %s",params);
SendRconCommand("string");
printf("%s(ID:%d) used the command unbanip and unbanned ip %s",adminname,playerid,params);
}
return 1;
}