SA-MP Forums Archive
Y_INI Unban - 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: Y_INI Unban (/showthread.php?tid=507351)



Y_INI Unban - TheSimpleGuy - 17.04.2014

Hi! I am TheSimpleGuy. I hope you may accept me here in forums!
I have a question about Y_INI. On many unban tutorial I have seen using Y_INI, they set the 'Banned' variable into 1, and unbanning, setting it into 0.

What if I use Ban(playerid);? How do I unban using that?


Re: Y_INI Unban - PrivatioBoni - 17.04.2014

You can use the rcon functions in your script.

Example: https://sampforum.blast.hk/showthread.php?tid=308617


Re : Y_INI Unban - S4t3K - 17.04.2014

Or simply don't use Ban(Ex)(playerid);

Create a line in your ini file which contains the value of ban (most likely 0 or 1), then checks at player connection if the value of "ban" in his .ini file is 0 or 1.
If it's 1, kick him with a custom message.
Else, let him continue singing-in.

Note that bans done with Ban(Ex)(playerid); are in a file called samp.ban (don't remember if it's in the same folder as samp-server or in the scriptfiles folder) that you can open and edit with notepad.

You can delete bans by going in the samp.ban file and removing the line which corresponds to the ban, but I think you must do it manually, means not with an InGame /unban command.


Re: Y_INI Unban - TheSimpleGuy - 17.04.2014

Hmm, let me try these all. Thank you for giving ideas/suggestions!