AlanHornus Posted November 8, 2018 Share Posted November 8, 2018 como puedo sacar la funsion que al cambiarse de skin te cargue la vida? Link to comment
aka Blue Posted November 9, 2018 Share Posted November 9, 2018 function llenarAlCambiar(oldModel, newModel) if ( getElementType(source) == "player" ) then setElementHealth( source, 100 ) end end addEventHandler("onElementModelChange", getRootElement(), llenarAlCambiar) Esto debería funcionar. Recuerda que es lado server. 2 Link to comment
AlanHornus Posted November 9, 2018 Author Share Posted November 9, 2018 (edited) 6 hours ago, aka Blue said: function llenarAlCambiar(oldModel, newModel) if ( getElementType(source) == "player" ) then setElementHealth( source, 100 ) end end addEventHandler("onElementModelChange", getRootElement(), llenarAlCambiar) Esto debería funcionar. Recuerda que es lado server. muchas gracias brooo solo tuve que borrar esto setElementHealth( source, 100 ) te lo agradesco Edited November 9, 2018 by AlanHornus Link to comment
aka Blue Posted November 9, 2018 Share Posted November 9, 2018 31 minutes ago, AlanHornus said: muchas gracias brooo solo tuve que borrar esto setElementHealth( source, 100 ) te lo agradesco ¿What? Si esa es la función que le da vida xd 1 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now