Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cfg = {
- points = 15, -- Points necessarios
- gain = 2494, -- Item ID gained
- amount = 1, -- Quantidade
- }
- function onUse(cid, item, frompos, item2, topos)
- if doAccountRemovePoints(cid, cfg.points) then
- doPlayerAddItem(cid, cfg.gain, cfg.amount)
- doSendAnimatedText(getCreaturePosition(cid), "DONATE!", math.random(1, 255))
- else
- doPlayerSendTextMessage(cid, 20, "Você não tem points o suficiente, você tem [Points: "..getAccountPoints(cid).."]")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement