SA-MP Forums Archive
[Ban System]Kick vs Ban - 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: [Ban System]Kick vs Ban (/showthread.php?tid=605562)



[Ban System]Kick vs Ban - TheSimpleGuy - 21.04.2016

Hello guys, I would like to ask: what's the better option for banning players?
Kick: I can put a variable to their save files, and when they connect, they will be automatically be kicked from the server. But, it would only ban their current username.
Ban: Bans the whole IP address, but, how do I create a system that deletes the username in samp.ban file by adding a command in-game?
I would like to hear your opinions. Thank you!


Re: [Ban System]Kick vs Ban - BloodyRP - 21.04.2016

If I know right - in samp.ban u can store only IP's, not usernames.
and u can do unban staff from game

Код:
CMD:unbanip(playerid,params[])
{
	if(sscanf(params,"s[32]", params[0])) return SendClientMessage(playerid, 0xFFFFFFFF, "/unbanip [IP]");
	new sstring[40];
        format(sstring,40,"unbanip %s",params[0]);
        SendRconCommand(sstring);
	SendRconCommand("reloadbans");
        return true;
}
but, I think, thats better to kick player. because from 1 ip can play 2 players and if u ban 1, second will be banned too.
--
Sorry for poor english.
Hope u understood me


Re: [Ban System]Kick vs Ban - DTV - 22.04.2016

You can have both so you have a choice on just banning an account rather than every account associated with an IP, but in my opinion I'd use the ban function since if they're getting banned in the first place you wouldn't want them joining on another account and cause more issues.