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

VIP Error2

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
The player of access 1 pass...
<_<

Script:
PHP:
function onUse(cid, item, frompos, item2, topos)
	vip = {x=655, y=1049, z=7}
	access = getPlayerAccess(cid) 
  if item.uid == 2201 and access <= 1 then
	doTeleportThing(cid,vip)
	doSendMagicEffect(vip,10)
	doPlayerSendTextMessage(cid,22,"Você foi teleportado para a area VIP.")
  else
	doPlayerSendCancel(cid,"Você precisa ser VIP para passar.")
  end
  return 1
  end

I need player access 1+ to pass.
Bad English, sorry.
 
I hope i understand you right

then this should work

PHP:
function onUse(cid, item, frompos, item2, topos)
    vip = {x=655, y=1049, z=7}
    access = getPlayerAccess(cid)
    needaccess = 2 --Here you can change the access
  if item.uid == 2201 and access >= needaccess then
    doTeleportThing(cid,vip)
    doSendMagicEffect(vip,10)
    doPlayerSendTextMessage(cid,22,"Você foi teleportado para a area VIP.")
  else
    doPlayerSendCancel(cid,"Você precisa ser VIP para passar.")
  end
  return 1
  end

hope this is what you wanted :)
 
Back
Top