This has been in Kiwiserver 2.0 since like last year
does it lag the server?
function onSay(cid, words, param, channel)
local cfg = {
storage = 4931,
time = 30 * 1000
}
if(exhaustion.get(cid, cfg.storage) == false) then
doPlayerSave(cid, true)
exhaustion.set(cid, cfg.storage, cfg.time)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully saved your character.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait " .. exhaustion.get(cid, cfg.storage) .. " seconds.")
end
return true
end
function onSay(cid, words, param, channel)
local cfg = {}
cfg.storage = 4931
cfg.time = 30 * 1000
if exhaustion.get(cid, cfg.storage) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait " .. exhaustion.get(cid, cfg.storage) .. " seconds.")
end
doPlayerSave(cid)
exhaustion.set(cid, cfg.storage, cfg.time)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully saved your character.")
return true
end
Bad bad bad.. "doPlayerSave(cid)" doesn't exist.
Yes, same function.does this exist for tfs 0.4?