Y_INI Unban
#1

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?
Reply
#2

You can use the rcon functions in your script.

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

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.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)