Jump to content

respawn


eldelahoz

Recommended Posts

Posted

Hola lo que pasa es que no ce como hacer para que cuando uno se muera se demore en revivir yo se que esta el hospitalrespawn pero yo lo quería sacar de hay pero el recurso esta codificado así que quería saber si me pueden ayudar por fis

lgEoigY.png

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

Prueba creando un script con este codigo.

function cuandoMuere() 
   spawnPlayer (source, x, y, z, rotacion, skinID, 0, 0) 
   setCameraTarget(source, source) 
   showChat(source, true) 
addEventHandler ("onPlayerWasted", getRootElement(), cuandoMuere) 

le cambias la posicion x, y ,z, la rotación y el skin.

Posted
no teve llevar setTimer?

prueba con

function cuandoMuere() 
   spawnPlayer (source, x, y, z, rotacion, skinID, 0, 0) 
   setCameraTarget(source, source) 
   showChat(source, true) 
end 
  
 function timer() 
  setTimer ( cuandoMuere, tiempo en milisegundos, 1) 
end 
addEventHandler ("onPlayerWasted", getRootElement(), timer) 

Posted

Esta mal, porque "source" no esta definido en "cuandoMuere".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...