Forum
CS2D Scripts Broadcast and something elseBroadcast and something else
6 replies 1
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,3)=="!bc" then local msg = txt:sub(5) msg(player(id,"name").." (broadcast): "..msg) return 1 end end
1
2
2
if txt:sub(1,3)=="!bc" then local msg = txt:sub(5)
@ TopNotch, may you please tell me what do these two lines do? and what's the different between them?
1
if txt == "xx" then
It basically reads from character 1 to 3.
Check this.
1