Witam, mam problem. Nie wiem czemu mi nie działa exhausted na talkaction
Mimo tego, że ustawiłem exhausted to i tak można wypowiadać non stop wojnę. Co jest nie tak?
Code:
function onSay(cid, words, param, channel)
local guild = getPlayerGuildId(cid)
[COLOR="Red"] local waittime = 1200
local storage = 9843
[/COLOR]
(...)
[COLOR="Red"]if exhaustion.get(cid, storage) == FALSE then[/COLOR]
doBroadcastMessage(getPlayerGuildName(cid) .. " has invited " .. enemyName .. " to war till " .. frags .. " frags.", MESSAGE_EVENT_ADVANCE)
[COLOR="Red"]exhaustion.set(cid, storage, waittime)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. exhaustion.get(cid, storage) .. " seconds.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end [/COLOR]
return true
(...)
Mimo tego, że ustawiłem exhausted to i tak można wypowiadać non stop wojnę. Co jest nie tak?