nrealSoftWare.de!Today im updating my server in CS2D and i got one problem...
I know, my script is too small and very easy to make.
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
30
31
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
30
31
addhook("say","adminCommands")
function adminCommands(id,txt)
		if string.sub(txt,1,6)=="!name " then
			local nametoban = string.sub(txt,7) --hmm variable won't to set
		end
		if string.sub(txt,1,6)=="!time " then
			local timetoban = string.sub(txt,7)
		end
		if string.sub(txt,1,8)=="!reason " then
			local reasontoban = string.sub(txt,9) --also there
		end
		if(txt=="!banname") then
			if nametoban~="" then
				if reasontoban~="" then
					if timetoban~="" then
						parse("banname "..nametoban.." "..timetoban.." "..reasontoban)
						nametoban = ""
						timetoban = ""
						reasontoban = ""
					else
						msg2(id,color[3].."Use !time 'time there' to switch time to ban")
					end
				else
					msg2(id,color[3].."Use !reason 'reason' to switch reason to ban")
				end
			else
				msg2(id,color[3].."Use !name 'name there' to switch name to ban")
			end
		end
	return 1
end
ban system is not working. (script)
1 
Offline
The Gajos