Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local t = {level = 50000}
  2. local position {x = -1, y = -1, z = -1}
  3.  
  4. function onStepIn(cid, item, position, fromPosition)
  5.     lvl = getPlayerLevel(cid)
  6.     if isPlayer(cid) && lvl < 50000 then
  7.         doTeleportThing(cid, position)
  8.         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You need level ' .. t.level .. ' to go through here.')
  9.     else
  10.         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, k and 'Enjoy Going where you are going.')
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement