RoksasNunes

Leveled

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