edited 1×, last 14.08.13 06:09:17 am
Forum
CS2D Scripts asdsadasdsad
3 replies 1
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook ("say","_say") function _say(id,txt) local tox=txt:sub(1,3) if tox=="!bc" then local fullstring = txt:sub(13) msg("©00255000"..player(id,"name").."(broadcasts):"..fullstring) 	 return 1; end end
edited 3×, last 14.08.13 03:26:25 am
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
addhook("say","_say") function _say(id,txt) 	if txt:sub(1,10) == "!broadcast" then 	local fullstring = txt:sub(12) 		msg("©00255000"..player(id,"name").." (broadcasts):"..fullstring) return 1; end end
Me Gusta has written
replace this in your code and set
the code "local tox=txt:sub(1,10)" set to local tox=txt:sub(1,3) and "!bc" is work or no?
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook ("say","_say") function _say(id,txt) local tox=txt:sub(1,3) if tox=="!bc" then local fullstring = txt:sub(13) msg("©00255000"..player(id,"name").."(broadcasts):"..fullstring) 	 return 1; end end
Work but can't see word
1