kito2
www.masteria.net
Like topic name, I need to make help channel with delay (30 sec) easy to set, but tutor or higher groups shouldnt have exhausted and also talk in orange (flag).
I rep`+++ thanks!
I rep`+++ thanks!
Look at the example script at the bottom of that thread;
Code:function onWriteToChannel(cid, channelId, text) if(text:lower() == 'fuck') then doPlayerSendChannelMessage(cid, "", "Swearings are not allowed here!", TALKTYPE_CHANNEL_RN, channelId) return false -- this will make his text dont appear! end return true end
Just change
toCode:if(text:lower() == 'fuck') then
Code:if getCreatureStorage(cid, 9001) < 0 then
function onWriteToChannel(cid, channelId, text)
if exhaustion.check(cid, 9001) == false then
exhaustion.set(cid, 9001, 30)
return true
else
doPlayerSendCancel(cid, "you can place your next message in "..exhaustion.get(cid, 9001).." seconds.")
return false
end
return true
end
Humm, there is no function in normal called onWritetochannel, so you need to compile this function