local timing = 120 -- in sconds
local storage = 19920 -- empty storage
function onSay(cid, words, param, channel)
if(param == '') then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") and true end
if exhaustion.get(cid, storage) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You need to wait more "..exhaustion.get(cid, storage) .." seconds." ) end
if getPlayerGroupId(cid) >= 3 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED,"Keepin mind Gm's, Gods don't have exhaustion on this talkaction.") end
exhaustion.set(cid, storage, timing)
doBroadcastMessage(getCreatureName(cid).."["..getPlayerLevel(cid).."] : "..param, MESSAGE_TYPES["advance"])
return true
end
<talkaction words="!broadcast" event="script" value="playerbc.lua"/>
local timing = 120 -- in sconds
local storage = 19920 -- empty storage
function onSay(cid, words, param, channel)
if(param == '') then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") and true end
if exhaustion.get(cid, storage) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You need to wait more "..exhaustion.get(cid, storage) .." seconds." ) end
if getPlayerGroupId(cid) >= 3 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED,"Keepin mind Gm's, Gods don't have exhaustion on this talkaction.") end
exhaustion.set(cid, storage, timing)
doBroadcastMessage(getCreatureName(cid).."["..getPlayerLevel(cid).."] : "..param, MESSAGE_TYPES["advance"])
return true
end
local timing = 120 -- in seconds
local storage = 19920 -- empty storage
function onSay(cid, words, param, channel)
if(param == '') then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
end
if(exhaustion.get(cid, storage)) then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need to wait more "..exhaustion.get(cid, storage) .." seconds.")
end
if(getPlayerGroupId(cid) >= 3) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Keep in mind Gm's, Gods don't have exhaustion on this talkaction."))
end
exhaustion.set(cid, storage, timing)
doBroadcastMessage(getCreatureName(cid).."["..getPlayerLevel(cid).."] : "..param, MESSAGE_TYPES["advance"])
return true
end