Forum
CS2D Scripts In game ban list.In game ban list.
12 replies 1
1
(rcon) bans
in console ?
H-X has written
hey guys if someone can make me a lua in which if i say !banlist and i get all the players list of ip's or USGN's which are banned.
Use Console this cmds IF you'r SERVER / RCON
listbans
bans
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
addhook("say","getbanlist") function getbanlist(id,txt) 	if (txt=="!banlist") then 		msg2(id,"----- List of Bans -----") 		local fh = io.open("sys/bans.lst","r") 		local bans = {} 		for line in fh:lines() do 			if line:sub(1,2)~="//" and #line>0 then 				local mode,value = line:gsub("(.+)\t\t(.+)")() 				local str = "* " 				if mode == "banusgn" then 					str = str .. "USGN ID #" 				elseif mode == "banip" then 					str = str .. "IP " 				elseif mode == "banname" then 					str = str .. "Name " 				end 				str = str .. value 				bans[#bans+1] = str 			end 		end 		msg2(id,"bans total: "..#bans) 		for _,v in ipairs(bans) do 			msg2(id,v) 		end 		fh:close() 		return 1 	end end
you can take a cookie
I was trying to use bots
I kept bans, and I wrote! banlist writing this only ----- List of Bans -----
Admin/mod comment
Please don't quote long posts. /EngiN33R Dimas541 has written
@ EngiN33R: You give her the code there is an error
I was trying to use bots
I kept bans, and I wrote! banlist writing this only ----- List of Bans -----
I was trying to use bots
I kept bans, and I wrote! banlist writing this only ----- List of Bans -----
Well, as far as I checked, it didn't have any errors. Mind at least saying what the error text is, if there is any?
Dimas541 has written
@ EngiN33R: You give her the code there is an error
I was trying to use bots
I kept bans, and I wrote! banlist writing this only ----- List of Bans -----
I was trying to use bots
I kept bans, and I wrote! banlist writing this only ----- List of Bans -----
Are you sure that there is also a "total bans: 0" message? if not then make sure that your CS2D have full-rights. If it's also showing "total bans: 0" then there is no banned players on your server
1