Forum

> > CS2D > Servers > remove ban
Forums overviewCS2D overview Servers overviewLog in to reply

English remove ban

5 replies
To the start Previous 1 Next To the start

old remove ban

Black Wolf
User Off Offline

Quote
How do i can remove baN? I banned player with one lua script and now i want remove ban how?

old Re: remove ban

Cure Pikachu
User Off Offline

Quote
Two ways:
• Edit the bans.lst in your sys folder.
• In-game, press Esc > Players & Bans > Bans tab. Then Remove accordingly.

old Re: remove ban

Xirot
User Off Offline

Quote
use rcon
Spoiler >

and and write
Spoiler >

please read FAQ before asking us any fucking stupid question !
I think you're already pressed on ''I searched but I didn't find any thing''

old Copy and delete, be safe not sorry. :)

KimKat
GAME BANNED Off Offline

Quote
I have got a neat way to delete bans and have backups made.
The following is a Lua script for CS2D servers that are running on Windows.
addhook("say", "on_say")
function on_say(p,txt)
	local srv=player(1,"exists")
	if (srv) then -- Detect the server admin.
		if (txt=="!bans del") then -- This removes the bans.
			os.execute("echo All bans removed. > sys/bans.lst")
			print "©102255102You have removed all the bans in ('sys/bans.lst')."
		elseif (txt=="!bans copy") then -- This makes a copy of the bans.
			os.execute('copy /Y sys/bans.lst "sys/bans.lst.backup"')
			print "©102255102You have copied the ('sys/bans.lst') and made a backup of it at ('sys/bans.lst.backup')."
		end
	else
		print "©250250075You do not have the privileges to perform this."
		msg2(p,"©250250075You do not have the privileges to perform this.@C")
	end
end
Revised code. √

I added Linux version aswell, just to be "user-friendly" lol.
addhook("say", "on_say")
function on_say(p,txt)
	local srv=player(1,"exists")
	if (srv) then -- Detect the server admin.
		if (txt=="!bans del") then -- This removes the bans.
			os.execute('echo "All bans removed." > /sys/bans.lst')
			print "©102255102You have removed all the bans in ('/sys/bans.lst')."
		elseif (txt=="!bans copy") then -- This makes a copy of the bans.
			os.execute("cp /sys/bans.lst /sys/bans.lst.backup")
			print "©102255102You have copied the ('/sys/bans.lst') and made a backup of it at ('/sys/bans.lst.backup')."
		end
	else
		print "©250250075You do not have the privileges to perform this."
		msg2(p,"©250250075You do not have the privileges to perform this.@C")
	end
end
edited 3×, last 07.10.12 03:58:05 pm

old Re: remove ban

Marcell
Super User Off Offline

Quote
user KimKat has written
I have got a neat way to delete bans and have backups made.
The following is a Lua script for CS2D servers that are running on Windows.
addhook("say", "on_say")
function on_say(p,txt)
	if (txt=="!delete_bans") then
		os.execute("echo All bans removed. > sys/bans.lst")
	elseif (txt=="!copy_bans") then
		os.execute('copy /Y sys/bans.lst "sys/bans.lst.backup"')
	end
end


I think you can use it without space..
so fix:

1
2
3
4
5
6
7
8
addhook("say", "on_say")
function on_say(p,txt)
     if (txt=="!delete bans") then
          os.execute("echo All bans removed. > sys/bans.lst")
     elseif (txt=="!copy bans") then
          os.execute('copy /Y sys/bans.lst "sys/bans.lst.backup"')
     end
end
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview