• 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!

Premium Doors

Gr4b3Q

New Member
Joined
Feb 1, 2009
Messages
13
Reaction score
0
Hello, can somebody post a scritp that will allow only premium players to open/pass the door ? I tryed to modify a script with premium tiles but i didn't managed to make it work. ;]
Thanx in advance
Yours Gr4b3q ;)
 
i think its works

obs: i just edited: http://otland.net/f132/vocation-door-12089/


function onUse(cid, item, frompos, item2, topos)

if item.uid == 10092 then
if isPremium == 1 then
doPlayerSendTextMessage(cid, 22, "You can enter!")
pos = getPlayerPosition(cid)

if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Please stand in front of the door.')
return 1
end

doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'You can\'t pass, you are not premium.')
end
return 1
else
return 0
end
end
 
Back
Top