J u Z e K
Banned User
- Joined
- Feb 27, 2011
- Messages
- 141
- Reaction score
- 1
Hello i need ambitious stamina ticket.
I want to Stamina ticket never end.
But after use its not work on 24h
So i want Good Id to use (can be use) Looking ID : 8981
Already Used (cant be use on next 24h) Looking ID : 5785
I want to Stamina ticket never end.
But after use its not work on 24h
So i want Good Id to use (can be use) Looking ID : 8981
Already Used (cant be use on next 24h) Looking ID : 5785
LUA:
local waittime = 300 -- (300 seconds) do seconds for 24 hours
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerStamina(cid) == 2520) then
return doPlayerSendCancel(cid, "Your stamina is already full.")
end
if exhaustion.get(cid, storage) == FALSE then
exhaustion.set(cid, storage, waittime)
doPlayerSetStamina(cid, 2520)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. exhaustion.get(cid, storage) .. " seconds.")
end
return true
end