Posts: 223
Threads: 68
Joined: Apr 2014
Reputation:
0
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?
Posts: 864
Threads: 57
Joined: Jan 2013
Reputation:
0
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.
Posts: 223
Threads: 68
Joined: Apr 2014
Reputation:
0
Hmm, let me try these all. Thank you for giving ideas/suggestions!