Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local player = Player(cid)
- if player:getStamina() >= 2520 then
- player:sendCancelMessage("Your stamina is already full.")
- elseif player:getPremiumDays() < 1 then
- player:sendCancelMessage("You must have a premium account.")
- else
- if player:getStamina() > 2280 then
- player:setStamina(2520)
- else
- player:setStamina(player:getStamina() + 240)
- end
- player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Your stamina has been refilled.")
- Item(item.uid):remove(1)
- end
- return true
- end
Add Comment
Please, Sign In to add comment