local storage = 12000
function onSay(cid, words, param, channel)
if(param ~= '') then
if not exhaustion.get(cid, storage) then
doWriteLogFile('./data/logs/messages-for-hoster/'.. getCreatureName(cid) ..'.txt', param)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have sent message to a hoster.')
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have to wait '.. exhaustion.get(cid, storage) ..' seconds in order to use this command again.')
end
end
return true
end
local storage = 12000
function onSay(cid, words, param, channel)
if(param ~= '') then
if not exhaustion.get(cid, storage) then
exhaustion.set(cid, storage, 3600)
doWriteLogFile('./data/logs/messages-for-hoster/'.. getCreatureName(cid) ..'.txt', param)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have sent message to a hoster.')
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You have to wait '.. exhaustion.get(cid, storage) ..' seconds in order to use this command again.')
end
end
return true
end