Ir para conteúdo

Featured Replies

Postado
  • Solução
function onLogin(cid)
    local house = getHouseByPlayerGUID(getPlayerGUID(cid))
    local pos = {x=32369, y=32241, z=7} -- pos onde será teleportado
    if isPremium(cid) and getPlayerStorageValue(cid, 548474) <= 0 then
        setPlayerStorageValue(cid, 548474, 1)
    elseif not isPremium(cid) and getPlayerStorageValue(cid, 548474) > 0 then
        doPlayerSendTextMessage(cid, 22, "seu premium acabou")
        doCreatureChangeOutfit(cid,{lookType = getPlayerSex(cid) == 0 and 136 or 128})
        if house then
        setHouseOwner(house,NO_OWNER_PHRASE,true)
        end
        doTeleportThing(cid, pos)
        setPlayerStorageValue(cid, 548474, 0)
    end
    return true
end

 

  • Respostas 5
  • Visualizações 539
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onLogin(cid)     local house = getHouseByPlayerGUID(getPlayerGUID(cid))     local pos = {x=32369, y=32241, z=7} -- pos onde será teleportado     if isPremium(cid) and getPlayerStorageValue(ci

  • GiovaniRodrigo
    GiovaniRodrigo

    Não sei se está correto pois estou a anos sem fazer scripts, mas testa esse e me diz o que deu. function onLogin(cid) if isPremium(cid) and getPlayerStorageValue(cid, 2143190718) == -1 then set

Posted Images

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo