Advertisement
RoksasNunes

Lvl door

Apr 12th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local levelnes = 300 -- Necessary level
  2.  
  3. function onUse(cid, item, frompos, item2, fromPosition)
  4.         if getPlayerLevel(cid) < levelnes then
  5.                 return doPlayerSendTextMessage(cid,22,"Você precisa ter level "..levelnes.." para passar!")
  6.         end
  7.        
  8.         doTransformItem(item.uid, item.itemid + 1)
  9.                 doTeleportThing(cid, fromPosition, true)
  10.                         return true
  11.                 end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement