aqui está:
function getPlayerMoney(cid)
gold = getPlayerItemCount(cid,2148)
plat = getPlayerItemCount(cid,2152)*100
crys = getPlayerItemCount(cid,2160)*10000
money = gold + plat + crys
return money
end
function onSay(cid, words, param)
if getPlayerPremiumDays(cid) >= 1 and getPlayerMoney(cid) >= 50000 then
if getPlayerBlessing(cid, 0) then
doPlayerRemoveMoney(cid, 50000)
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Acabas de comprar las 5 blessing por 50000 gold coins.")
else
doPlayerSendCancel(cid, "Tu ya tienes todas las Blessings.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You don't have enough money, blessings costs 50000 gold coins.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
<talkaction words="!buybless" script="buybless.lua"/>
Se o do amigo não funcionar testa ae, encontrei espero ajudar