Tenta assim:
function onUse(cid, item, frompos, item2, topos)
tele = {x=915, y=627, z=8}
if item.uid == 2721 then
if isPremium(cid) then
vocation = getPlayerVocation(cid)
if vocation == 1 and getPlayerLevel(cid) > 499 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
elseif vocation == 1 and getPlayerLevel(cid) > 499 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
elseif vocation == 1 and getPlayerLevel(cid) > 499 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
elseif vocation == 1 and getPlayerLevel(cid) > 499 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.")
else
return doPlayerSendTextMessage(cid, 22, "Você Precisa estar level 500+ para entrar")
end
else
return doPlayerSendCancel(cid, "Você precisa ser premium para entrar!")
end
end
return true
end





info
Grupo: Campones
Registrado: 03/11/13
Posts: 63
Reputação: +2
Olá, preciso de uma ajudinha bem simples mas n sei a função...
preciso adicionar pra, além do level, apenas vips entrarem nessa porta:
-- function onUse(cid, item, frompos, item2, topos) tele = {x=915, y=627, z=8} if item.uid ==2721 then vocation = getPlayerVocation(cid) if vocation == 1 and getPlayerLevel(cid) > 499 then doTeleportThing(cid,tele) doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.") elseif vocation == 1 and getPlayerLevel(cid) > 499 then doTeleportThing(cid,tele) doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.") elseif vocation == 1 and getPlayerLevel(cid) > 499 then doTeleportThing(cid,tele) doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.") elseif vocation == 1 and getPlayerLevel(cid) > 499 then doTeleportThing(cid,tele) doPlayerSendTextMessage(cid,22,"Bem-vindo a Outland.") else doPlayerSendTextMessage(cid,22,"Você Precisa estar level 500+ para entrar") end return 0 end return 1 endTambém se possível eu gostaria de tirar o vip eterno de todo mundo do servidor e transformar fly ride e surf para free(sem vip), alguém sabe como fazer?
vlw