local moeda = ID_GOLDEN_NUGGET
local premiumDays = getConfigInfo("premiumDays")
local premiumPrice = getConfigInfo("premiumPrice")
function onSay(cid, words, param)
if getPlayerPremiumDays(cid) <= 350 then
if doPlayerRemoveItem(cid,moeda,premiumPrice) == TRUE then
doPlayerAddPremiumDays(cid, premiumDays)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have bought more of "..premiumDays.." days of premium account.")
else
doPlayerSendCancel(cid, "You need a golden nugget to buy premium.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You can not buy more than one year of Premium Account.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end