Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- if isPlayer(cid) then
- if math.min(365) then
- doPlayerAddVipDays(cid, 30)
- doSendMagicEffect(getThingPos(cid), CONST_ME_FIREWORKS_RED)
- doPlayerSendTextMessage(cid, STATUS_CONSOLE_BLUE, "30 VIP days have added to your account.")
- doRemoveItem(cid, item.uid)
- else
- doPlayerSendTextMessage(cid, STATUS_CONSOLE_BLUE, "You may only have 1 year of VIP access in total!")
- doSendMagicEffect(getThingPos(cid), CONST_ME_POOF)
- end
- end
- return true
- end
Add Comment
Please, Sign In to add comment