Forum
Scripts
Broadcast and something else
Broadcast and something else
6 replies
1

File does not exist (15866) for easy to make commands
Joni And Friends thanks for advising me using that, but i want to do it at my own way, I still don't get how to get the command. 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.
TopNotch thank you for the kind replies, i know how do they work now, many thanks
1

Offline