Hello,
who can change my vip script unlimited to limited?when player to become vip.add 15 days vip and then 15 days vip is finished.
Vip script:
Vip Door:
Thanks.
who can change my vip script unlimited to limited?when player to become vip.add 15 days vip and then 15 days vip is finished.
Vip script:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5785 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid,22,"CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!.")
setPlayerStorageValue(cid, 11551, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You Are Not a Vip Player.')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end
Vip Door:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 11551 then -- This number you will imput into map editor for the door you wish
queststatus = getPlayerStorageValue(cid,11551) -- Quest number that needs to be COMPLETE.
area = {x=683, y=599, z=8} -- If that above quest is complete, It will teleport you here.
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Sorry, but only VIP Players can pass here! Buy {medal of v.i.p}.")
else
doTeleportThing(cid, area,0)
doSendMagicEffect(topos, 12)
doPlayerSendTextMessage(cid,22,"Welcome VIP Player!")
end
end
return 1
end
Thanks.