FraN-724 Posted May 26, 2013 Share Posted May 26, 2013 Intenta esto. function drawImage() dxDrawImage ( 218,513,384,82,"images/logo1.png") end addEventHandler("onClientRender", getLocalPlayer(), drawImage) setTimer ( function lala(killer, weapon, bodypart) removeEventHandler ( "onClientRender", getLocalPlayer(), drawImage ) end, 8000, 0 ) addEventHandler("onClientPlayerWasted", getLocalPlayer(), lala) Link to comment
Bc# Posted May 27, 2013 Share Posted May 27, 2013 Intenta esto. function drawImage() dxDrawImage ( 218,513,384,82,"images/logo1.png") end addEventHandler("onClientRender", getLocalPlayer(), drawImage) setTimer ( function lala(killer, weapon, bodypart) removeEventHandler ( "onClientRender", getLocalPlayer(), drawImage ) end, 8000, 0 ) addEventHandler("onClientPlayerWasted", getLocalPlayer(), lala) Ese script te mostraria una imagen estatica que cuando muera el jugador pasado 8 segundos desaparecerá asi que no funcionaria. Ahora lo probe en mi servidor y tenia un error en el render asi que si pones esto deveria funcionarte: function Nomnre(killer, weapon, bodypart) addEventHandler("onClientRender", root, drawImage) setTimer ( function() removeEventHandler ( "onClientRender", root, drawImage ) end, 8000, 0 ) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), Nomnre) function drawImage() dxDrawImage ( 218,513,384,82,"images/logo1.png") end Link to comment
Anyelberth Posted May 27, 2013 Author Share Posted May 27, 2013 Ese si me funciono, Gracias. Link to comment
Recommended Posts