samuel157
/root
- Joined
- Mar 19, 2010
- Messages
- 447
- Solutions
- 3
- Reaction score
- 49
- Location
- São Paulo, Brazil
- GitHub
- Samuel10M
Lua:
function onSay(cid, words, param)
if getPlayerLevel(cid) == 717217 and getPlayerStorageValue(cid, 13545) == 1 and isPremium(cid) then
if doPlayerRemoveMoney(cid, 0) == TRUE then
local bp = doPlayerAddItem(cid, 5805, 1)
doCreatureSay(cid, "Você comprou um item para desbugar a CAP.", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Item grátis", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doCreatureSay(cid, "Você não atende aos requisitos para comprar o item.", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end