Witam, ostatnio słyszałem że lepiej nie wprowadzać komendy !save na serwer, ponieważ może ona scrashować/zlagować serwer.
Chciałbym się was zapytać co o tym myślicie.
moje playersave.lua
Chciałbym się was zapytać co o tym myślicie.
moje playersave.lua
PHP:
local storage = 1351
local time = 60
function onSay(cid, words, param, channel)
if not exhaustion.check(cid, storage) then
doPlayerSave(cid)
exhaustion.set(cid, storage, time)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have saved your character!')
else
doPlayerSendCancel(cid,"You can use this command only 1 time per "..time.." seconds.")
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_POFF)
end
return true
end