T0

[Encerrado] Porta pra vip

Por t0gexdarki, 12 de dez. de 2013 em Tópicos Sem Resposta

porta
vip
requisito
só vip
resolvido
5
668
t0gexdarkiT
12 de dezembro de 2013 às 05:47

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
end

 

 

També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 :D

 

zipter98Z
12 de dezembro de 2013 às 23:51

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
t0gexdarkiT
16 de dezembro de 2013 às 20:58

desculpe a demora, funcionou...

dei rep, obrigado.

zipter98Z
16 de dezembro de 2013 às 23:09

Tópico movido para a seção de dúvidas e pedidos resolvidos.

4 anos depois...
StigalS
21 de abril de 2018 às 03:16
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.