local staminaMaxMinutes = 2520
local cost = 200000
function onSay(cid, words, param, channel)
if(getPlayerStamina(cid) < staminaMaxMinutes) then
if(doPlayerRemoveMoney(cid, cost)) then
doPlayerSetStamina(cid, 2520)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have restored your stamina for " .. cost .. " gold.")
else
doPlayerSendCancel(cid, "You need " .. cost .. " gold to restore your stamina.")
end
else
doPlayerSendCancel(cid, "Your stamina is already full.")
end
return true
end