function onSay(cid, words, param, channel)
local cfg = {
full = 42 * 60 * 1000,
price = 150000
}
if(words == "!stamina") then
if(getPlayerStamina(cid) >= cfg.full) then
doPlayerSendCancel(cid, "Your stamina is already full.")
elseif(getPlayerMoney(cid) < cfg.price) then
doPlayerSendCancel(cid, "You do not have enough money.")
elseif(not isPremium(cid)) then
doPlayerSendCancel(cid, "You do not have a premium account.")
else
doPlayerSetStamina(cid, cfg.full)
doPlayerRemoveMoney(cid, cfg.price)
doCreatureSay(cid, "Your stamina has been refilled!", TALKTYPE_ORANGE_1)
end
return true
end
end