Ir para conteúdo

Featured Replies

  • Respostas 22
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onLogin(cid) local pos = {{x = 10, y = 10, z = 7},{x = 12, y = 12, z = 7},{x = 13, y = 13, z = 7},{x = 14, y = 14, z = 7}} -- defina as pos if getPlayerStorageValue(cid, 789963) > 0 then d

  • hospitaltp.lua function onLogin(cid) local pos = {{x = 10, y = 10, z = 7},{x = 12, y = 12, z = 7},{x = 13, y = 13, z = 7},{x = 14, y = 14, z = 7}} -- defina as pos if getPlayerStorageValue(cid, 78

  • leozincorsair
    leozincorsair

    Creio que seja em creaturescripts, agora a tag nao sei .

Postado

hospitaltp.lua

function onLogin(cid)
local pos = {{x = 10, y = 10, z = 7},{x = 12, y = 12, z = 7},{x = 13, y = 13, z = 7},{x = 14, y = 14, z = 7}} -- defina as pos
if getPlayerStorageValue(cid, 789963) > 0 then
doTeleportThing(cid, pos[math.random(1, #pos)])
setPlayerStorageValue(cid, 789963, 0) 
end
registerCreatureEvent(cid, "DeathHospital")
return true
end
function onDeath(cid, corpse, deathList)
if isPlayer(cid) then
setPlayerStorageValue(cid, 789963, 1)
end
return true
end

TAG

 

<event type="death" name="DeathHospital" event="script" value="hospitaltp.lua"/>
<event type="login" name="LoginHospital" event="script" value="hospitaltp.lua"/>

 

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Postado
  Em 30/08/2016 em 12:31, Vodkart disse:

hospitaltp.lua


function onLogin(cid)
local pos = {{x = 10, y = 10, z = 7},{x = 12, y = 12, z = 7},{x = 13, y = 13, z = 7},{x = 14, y = 14, z = 7}} -- defina as pos
if getPlayerStorageValue(cid, 789963) > 0 then
doTeleportThing(cid, pos[math.random(1, #pos)])
setPlayerStorageValue(cid, 789963, 0) 
end
registerCreatureEvent(cid, "DeathHospital")
return true
end
function onDeath(cid, corpse, deathList)
if isPlayer(cid) then
setPlayerStorageValue(cid, 789963, 1)
end
return true
end

TAG

 


<event type="death" name="DeathHospital" event="script" value="hospitaltp.lua"/>
<event type="login" name="LoginHospital" event="script" value="hospitaltp.lua"/>

 

o meu nao peguei eu adc RegisterCreatureEvent(cid, "DeathHostipal") no login e mesmo assim nao foi

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


 

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