someone types the command "$$ae show" or "$$ic2 show"
I'm looking to do a function for which definire info display with "ae", "ic2"
sorry for my bad English
--$$ Comand
while true do
local e, msg = os.pullEvent("chat_command")
print(e.." - "..msg)
--if for find ae or ic2
if ("ae") then
print("ae")
elseif ("ic2") then
print("ic2")
end
end
finish partwhile true do
local e, msg = os.pullEvent("chat_command")
print(e.." - "..msg)
if string.match(msg, "ae") then
print("ae")
elseif string.match(msg, "ic2") then
print("ic2")
end
end













