Unban command help please - 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 command help please (
/showthread.php?tid=210440)
Unban command help please -
darkknight123 - 13.01.2011
I was trying to script it in myself im useing LuxAdmin (edited obviusly) heres the story i was trying to script in a /unban command and i tested it on my highst level admin then it banned him then i tryed to unban him and i ended up banning one of my players (Sorry @MONSTER@) so how would I script in a /unban command that wont ban another player?
Re: Unban command help please -
cessil - 13.01.2011
post the attempt, you need to get their IP, you probably saved this in a file then using sendrconcommand to unbanip and then reloadbans
Re: Unban command help please -
darkknight123 - 13.01.2011
yeah i did but how do i make a command to unban them from in the game?
Re: Unban command help please -
coole210 - 13.01.2011
Well make a command like /unban (name)
Then inside the command check if the username exists, load the user's IP if it does, store it in a variable & do this:
format(string,sizeof(string),"unbanip %s",IPSTRINGHERE);
SendRconCommand(string);
SendRconCommand("reloadbans");
Remember to make the IP variable a string, not an integer (number :/).