• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Hey i want a vip tp script.....

Lpe95

https://soundcloud.com/saintdmusic/sail-remix
Joined
Mar 3, 2013
Messages
308
Reaction score
12
Location
Music preformer.
Hey i want only v.i.p players can go in to a Vip city,

They don't use Vip medal they use a doll to come in to vip city,

Anyone got the script only Vip players can come in to city not normal palyers.

Rep++
 
listen here are my script
i'm in phone .. i'm busy too
understand my scripts and u will know how to fix ur problem

first data/actions/scripts
vip.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if (getPlayerStorageValue(cid, 35498) == -1 and item.actionid == 3433)    then
            doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for 30 days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
            setPlayerStorageValue(cid, 35498, 30)
            doRemoveItem(item.uid, 1)
        else
            doPlayerSendCancel(cid,"You are already a VIP.")
        end 
return TRUE
end
in action.xml
Code:
    <action itemid="10137" actionid="3433" uniqueid="3433" script="vip.lua"/>

Note :- i have added action id and unique id to the item will give me vip

now movement scripts
data/movements/scripts
viptp.ua
Code:
function onStepIn(cid, item, position, fromPosition)
    local posa = {x = 1000, y = 1000, z = 7} -- Temple
    local posb = {x = 2000, y = 2000, z = 7} -- Vip Area
    if isPlayer(cid) then
        if (getPlayerStorageValue(cid, 35498) >= 1 and item.actionid == 5340)    then
                doTeleportThing(cid, posb, false)
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You're welcome VIP member.")
        else
                doTeleportThing(cid, posa, false)
                doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You're not VIP member.")
        end
    end
    return TRUE
end

and add this line in movements.xml
Code:
    <movevent type="StepIn" itemid="5340" actionid="5340" event="script" value="viptp.lua"/>
itemid = Uniqueid i put in rme
actionid = actionid i put in rme
so it's simple
 
Still fcking same sh1t problem, I changed in reme 10306 < actionid< then in uniqueid 10306 < and then i changed pos in viptp there vip players should come in to.

Then in vip.lua i changed actionid to 10306

And i can still acces in to vip city without i used it. 15:27 You're not VIP member.

Just come and help me with reme mabye i do something wrong, i did all u told me and still it failz.
 
Back
Top