samuel157
/root
- Joined
- Mar 19, 2010
- Messages
- 461
- Solutions
- 3
- Reaction score
- 59
- Location
- São Paulo, Brazil
- GitHub
- Samuel10M
LUA:
function onSay(cid, words, param)
local playerLevel = getPlayerLevel(cid)
local playerStorageVip = getCreatureStorage(cid, 13545)
local playerPremium = isPremium(cid)
if playerLevel == 717217 and playerStorageVip == 1 and playerPremium 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, "Desculpe, você não atende aos requisitos.", TALKTYPE_ORANGE_1)
end
end
no function
Last edited: