Matty Posted August 24, 2012 Posted August 24, 2012 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 . Desde ya, Gracias.
Castillo Posted August 24, 2012 Posted August 24, 2012 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.
Matty Posted August 24, 2012 Author Posted August 24, 2012 Muchas gracias Solid... ( yo que intentaba con getElementType )
Matty Posted August 25, 2012 Author Posted August 25, 2012 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
Castillo Posted August 25, 2012 Posted August 25, 2012 Eso es porque solo es un argumento de rotacion no 3.
Matty Posted August 25, 2012 Author Posted August 25, 2012 Eso es porque solo es un argumento de rotacion no 3. Grax... setTimer( spawnPlayer, 6000, 1, source, 1181, -1323, 13, -90, getElementModel ( source ) )
Recommended Posts