Jump to content

Ayuda -- Script -·


Matty

Recommended Posts

Posted

Buenaaaas, les quito unos minutos de sus vidas; quiero que me ayuden a que el jugador quede con el mismo skin despues de morir(queda con el de cj)...

Code:

function Inicio() 
    local x = 1959.55 
    local y = -1714.46 
    local z = 11 
    spawnPlayer(source, x, y, z) 
    fadeCamera(source, true) 
    setCameraTarget(source, source) 
    setElementModel ( source, 120 ) 
    outputChatBox("#CCDDEEBienvenido al Servidor", source, 0, 255, 0, true) 
end 
addEventHandler("onPlayerJoin", getRootElement(), Inicio) 
  
  
addEventHandler( "onPlayerWasted", getRootElement( ), 
function() 
      setTimer( spawnPlayer, 6000, 1, source, 1186, -1323, 14 ) 
      fadeCamera ( source, false, 4, 255, 0, 0 ) 
      setTimer ( fadeCamera, 8000, 1, source, true, 1 ) 
end 
) 

Espero la ayuda :D. Desde ya, Gracias.

mattybanner.jpg

...Learning Scripting...

State: Rookie, Noob

[AP3]=Matty!=

My Skype: mattias.netz

Posted
function Inicio() 
    local x = 1959.55 
    local y = -1714.46 
    local z = 11 
    spawnPlayer(source, x, y, z) 
    fadeCamera(source, true) 
    setCameraTarget(source, source) 
    setElementModel ( source, 120 ) 
    outputChatBox("#CCDDEEBienvenido al Servidor", source, 0, 255, 0, true) 
end 
addEventHandler("onPlayerJoin", getRootElement(), Inicio) 
  
  
addEventHandler( "onPlayerWasted", getRootElement( ), 
function() 
      setTimer( spawnPlayer, 6000, 1, source, 1186, -1323, 14, 0, getElementModel ( source ) ) 
      fadeCamera ( source, false, 4, 255, 0, 0 ) 
      setTimer ( fadeCamera, 8000, 1, source, true, 1 ) 
end 
) 

Proba eso.

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.

Posted

Muchas gracias Solid... ( yo que intentaba con getElementType :? )

mattybanner.jpg

...Learning Scripting...

State: Rookie, Noob

[AP3]=Matty!=

My Skype: mattias.netz

Posted

No hay de que ;).

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.

Posted

Le puse las rotaciones y ahora no anda :(

Code:

addEventHandler( "onPlayerWasted", getRootElement( ), 
function() 
      setTimer( spawnPlayer, 6000, 1, source, 1181, -1323, 13, -90, 0, 0, 0, getElementModel ( source ) ) 
      fadeCamera ( source, false, 4, 255, 0, 0 ) 
      setTimer ( fadeCamera, 8000, 1, source, true, 1 ) 
      toggleAllControls ( source, false ) 
      setTimer ( toggleAllControls, 15000, 1, source, true ) 
end 
) 

ayuda :?

mattybanner.jpg

...Learning Scripting...

State: Rookie, Noob

[AP3]=Matty!=

My Skype: mattias.netz

Posted

Eso es porque solo es un argumento de rotacion no 3.

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.

Posted
Eso es porque solo es un argumento de rotacion no 3.

Grax...

setTimer( spawnPlayer, 6000, 1, source, 1181, -1323, 13, -90, getElementModel ( source ) ) 

mattybanner.jpg

...Learning Scripting...

State: Rookie, Noob

[AP3]=Matty!=

My Skype: mattias.netz

  • Recently Browsing   0 members

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