Ir para conteúdo

Featured Replies

Postado
  • Autor
2 minutos atrás, Gustavo BRX disse:

Antes do ultimo return true coloque isso

function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
     if isPlayer(cid) == true then
     setPlayerStorageValue(cid, 122000, 1)
     return true
	  if getPlayerStorageValue(cid, 122000) == 1 then
         location = {
         --Posição do hospital vip
        {x=1083, y=1014, z=14},
        {x=1086, y=1014, z=14},
        {x=1089, y=1014, z=14},
        {x=1092, y=1014, z=14},
        {x=1095, y=1014, z=14},
        {x=1096, y=1031, z=14},
        {x=1092, y=1031, z=14},
        {x=1089, y=1031, z=14},
        {x=1086, y=1030, z=14},
        {x=1083, y=1031, z=14}, 

    }
        setPlayerStorageValue(cid, 122000, 0)
        doTeleportThing(cid, location[math.random(#location)])
        end   
   end
 return true
end

ainda ta com o mesmo problema nao entra no servidor

12 minutos atrás, Gustavo BRX disse:

Antes do ultimo return true coloque isso

ta na versao 0.4?

O rei de seu proprio destino é aquele que luta pela gloria do amanhã!
Discord : ZoR#9373


 

  • Respostas 12
  • Visualizações 559
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Gustavo BRX
    Gustavo BRX

    Data/creaturescripts/   Hospital.lua function onLogin(cid)       if getPlayerStorageValue(cid, 122000) == 1 and getPlayerPremiumDays(cid) >= 1 then          location = {          --P

Postado
44 minutos atrás, ZikaLord disse:

function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
     if isPlayer(cid) == true then
     setPlayerStorageValue(cid, 122000, 1)
     return true
	  if getPlayerStorageValue(cid, 122000) == 1 then
         location = {
         --Posição do hospital vip
        {x=1083, y=1014, z=14},
        {x=1086, y=1014, z=14},
        {x=1089, y=1014, z=14},
        {x=1092, y=1014, z=14},
        {x=1095, y=1014, z=14},
        {x=1096, y=1031, z=14},
        {x=1092, y=1031, z=14},
        {x=1089, y=1031, z=14},
        {x=1086, y=1030, z=14},
        {x=1083, y=1031, z=14}, 

    }
        setPlayerStorageValue(cid, 122000, 0)
        doTeleportThing(cid, location[math.random(#location)])
        end   
   end
 return true
end

ainda ta com o mesmo problema nao entra no servidor

ta na versao 0.4?

Cada no login.lua tu poem isso

 


 if getPlayerStorageValue(cid, 122000) == 1 then
         location = {
         --Posição do hospital vip
        {x=2583, y=2517, z=15},
        {x=2582, y=2517, z=15},

    }
        setPlayerStorageValue(cid, 122000, 0)
        doTeleportThing(cid, location[math.random(#location)])
        end    

 

Cria uma arquivo chamado deathh.lua

 


function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
     if isPlayer(cid) == true then
     setPlayerStorageValue(cid, 122000, 1)
     return true
   end
 return true
end

 

creaturescripts.xml


<event type="preparedeath" name="Hospitalsto" event="script" value="deathh.lua"/>

  • 5 months later...

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.7k

Informação Importante

Confirmação de Termo