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

(TFS 1.0) Action only can pass player LVL x to LVL x

mori2005

New Member
Joined
Feb 19, 2009
Messages
68
Reaction score
0
hi im using TFS 1.0 , and im creating an arena and I need a script with an action, which can pass only player of level x to level x. bring this action on the floor plz help
 
Do you mean a players clicks use on something, then if he is the right level, like between 100 and 200, he will be teleported to a certain position?
 
Code:
function onStepIn(cid, item, position, fromPosition)

     local player = Player(cid)
     if player:getLevel() < 100 or player:getLevel() > 200 then
         player:teleportTo(fromPosition)
     end
     return true
end
 
This script teleports a player back when he is lower than level 100 or higher than lvl 200.
I works a bit like the premium bridge in rook, if you can't pass, you get pushed back.
 
Last edited:
Back
Top