Postado Abril 23, 2020 5 anos function onCastSpell(cid, var) local storage = 17127 local time = 3 if(exhaustion.make(cid, storage, time) == true) then if getPlayerSlotItem(cid, 10).itemid > 0 then doPlayerSendTextMessage(cid, 22, "Nop") else local key = doCreateItem(13216, 1, SLOT_AMMO) local doPlayerAddItem(cid, Key, true) local doDecayitem(Key) end else doPlayerSendCancel(cid, "Cooldown: "..exhaustion.get(cid, storage)+1) return false end end Eu to com 4g ai nao da pra mim testar os bgl, e é pra substituir
Postado Abril 24, 2020 5 anos function onCastSpell(cid, var) local storage = 17127 if(exhaustion.make(cid, storage, time) == true) then if getPlayerSlotItem(cid, 10).itemid > 0 then doPlayerSendTextMessage(cid, 22, "Nop") else doPlayerAddItem(cid,13216, 1, SLOT_AMMO) time = 10 -- Tempo em segundos addEvent(doRemoveItem, time*1000, item.uid, 1) end return true else doPlayerSendCancel(cid, "Cooldown: "..exhaustion.get(cid, storage)+1) return false end end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.