Hello, this script doesn't work, the exhaust don't work. You can just spam !save
Can anyone fix it?
Can anyone fix it?
PHP:
local waittime = 30 --Default (30 seconds)
local storage = 5560
function onSay(cid, words, param, channel)
if exhaustion.get(cid, storage) == FALSE then
doPlayerSave(cid)
exhaustion.set(cid, storage, waittime)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully saved your character.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. exhaustion.get(cid, storage) .. " seconds.")
end
return TRUE
end