elking
Swev-v2.sytes.net Comming Soon !<>!
Hello people of Otland.
I need help with vip check
I use this for Vip.lua
and this for Vip door.lua
help I test @Kekox system but it give all character on your account vip days
anyone can help me with vip check or make kekox vip for 1 character
I need help with vip check
I use this for Vip.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,11551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for 12 days! You can now enter the VIP!. ", TALKTYPE_MONSTER)
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 12))
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be at least level 1 to use this.")
end
else
doPlayerSendCancel(cid,"You are already a VIP.")
end
return TRUE
end
and this for Vip door.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cidPosition = getCreaturePosition(cid)
if (item.actionid == 5788 and getPlayerStorageValue(cid,11551) >= 1) then
if cidPosition.x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, {x=toPosition.x -1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
end
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Are Not Vip ! Donate And Buy It to Enjoy .")
return TRUE
end
return FALSE
end
help I test @Kekox system but it give all character on your account vip days
anyone can help me with vip check or make kekox vip for 1 character
Last edited by a moderator: