Zarabustor
Human Being
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,11551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendMagicEffect(getPlayerPosition(cid), 27)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 100000000000000000000000000000))
doCreatureSay(cid, "CONGRATULATIONS! You now have SUPER VIP access! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_2)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
doRemoveItem(item.uid, 1)
end
else
doPlayerSendCancel(cid,"You are already a VIP Player.")
end
return TRUE
end
Please help, i want that when you use the vip medal you get 15 days of vip time and after 15 days vip time is removed, also a command to check the vip status like:
!checkvip:
You have .... vip days left.
I hope you help me
Thnks all the ppl that helped me before.