Advertisement
RoksasNunes

LEVEL

Apr 12th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1.     local level = 300 -- Level to pass
  2.      
  3.     function onStepIn(cid, item, position, fromPosition)
  4.    
  5.             if isPlayer(cid) == false then
  6.                 return true
  7.             end
  8.            
  9.             if getPlayerLevel(cid) < level then
  10.                     doTeleportThing(cid, fromPosition, true)
  11.                             doPlayerSendTextMessage(cid, 27, "Only "..level.."Levels+!")
  12.                                     return true
  13.                             end
  14.                                
  15.                             doSendAnimatedText(getCreaturePosition(cid), "300+", math.random(1,255))
  16.                                     return true
  17.                             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement