Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local configs = {
- lv = 100,
- need_premium = false,
- vocation = 270,
- }
- function onUse(cid, item, item2)
- ex = item2.uid
- pos = {x = ex.x, y = ex.y , z = ex.z}
- if configs.need_premium then
- if not isPremium(cid) then
- doPlayerSendCancel(cid, "Voce precisa ser premium.")
- return true
- end
- end
- if getPlayerLevel(cid) < configs.lv then
- doPlayerSendCancel(cid, "Voce precisa do level "..configs.lv)
- return true
- end
- if getPlayervocation(cid) ~= configs.vocation then
- doPlayerSendCancel(cid, "Voce precisa ser da vocation 270")
- return true
- end
- doTeleportThing(cid, pos)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement