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

Solved vip free, floor isn't pushing them out

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
923
Location
Chile
hii, well like i said, when a player that is not vip step in the tile of premium they get this message "tu no puedes pasar" that means you cannot enter, but they are not being pushed, so they can enter D:
here is my script of that (this happens now that i changed to mysql)

Code:
function  onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPremium(cid)) then
doPlayerSendCancel(cid,"Tu necesitas ser vip para entrar")
doTeleportThing(cid,(fromPosition.x ==0) and getPlayerMasterPos(cid) or fromPosition)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Tu puedes pasar");
end
return true
end
 
if you want them to get pushed back:
Code:
function  onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPremium(cid)) then
doPlayerSendCancel(cid,"Tu necesitas ser vip para entrar")
doTeleportThing(cid,(fromPosition.x ==0) and getPlayerMasterPos(cid) or fromPosition)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Tu puedes pasar");
doTeleportThing(cid, fromPosition, false)
end
return true
end

If you don't want them to recieve the message:
Code:
function  onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPremium(cid)) then
doPlayerSendCancel(cid,"Tu necesitas ser vip para entrar")
doTeleportThing(cid,(fromPosition.x ==0) and getPlayerMasterPos(cid) or fromPosition)
end
return true
end

I think that should work
 
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
   if (not isPremium(cid)) then
     return doTeleportThing(cid, fromPosition), doPlayerSendCancel(cid, "Tu necesitas ser vip para entrar"), doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT), false
   end
  
   doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Tu puedes pasar")
   return true
end
 
Back
Top