function onSay(cid,channel ,words, param)
local premium = "yes" -- Apenas players premium accounts "yes" or "no"!?
local exausted = 48 -- em minutos
if premium == "yes" and not isPremium(cid) then
return doPlayerPopupFYI(cid,"Apenas Premium Account Podem Healar Sua estamina.")
end
if isPlayer(cid) and getPlayerStorageValue(cid, 102053)-os.time() > 1 then
local seetime = getPlayerStorageValue(cid, 102053)-os.time()
local hour,minutes, seconds = math.floor(seetime/24), math.floor(seetime/60), math.floor(seetime%60)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde "..hour.." hora(s)"..minutes.." minuto(s) e "..seconds.." segundo(s) para usar novamente!")
return false
end
if not getTilePzInfo(getCreaturePosition(cid)) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"precisa estar em protection zone pra poder recuperar sua stamina.")
return TRUE
end
if doPlayerRemoveItem(cid,2160,0) then
setPlayerStorageValue(cid, 102053, exausted*24+os.time())
doPlayerAddStamina(cid,100000000)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYAREA)
doPlayerSendTextMessage(cid,25,"Voce sera kickado Para regenerar a stamina.")
addEvent(doRemoveCreature, 1*1000, cid, true)
end
end