Julian09123 Posted February 5, 2013 Share Posted February 5, 2013 Hola amigos, Tengo un problema con mi script Lo hice da todo bien , pero le sigue sacando vida al player auqesa en la cabeza y otro ayuda function playerDamage_text ( attacker, weapon, bodypart, loss ) if ( bodypart == 9 ) then -- outputChatBox ( "Headshot!", getRootElement (), 255, 170, 0 ) killPed ( source, attacker, weapon, bodypart ) end -- call 'stopPlayerDamage' function stopPlayerDamage ( theplayer ) cancelEvent () end addEventHandler("onPlayerDamage",getRootElement(),cancelEvent) addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage_text ) Link to comment
FraN-724 Posted February 5, 2013 Share Posted February 5, 2013 Prueba así for _,t in ipairs(getElementsByType("team")) do setTeamFriendlyFire ( t , false ) end Link to comment
Julian09123 Posted February 5, 2013 Author Share Posted February 5, 2013 nop sigue muriendo mi amigo Link to comment
FraN-724 Posted February 5, 2013 Share Posted February 5, 2013 Pero estas seguro de que tu y tu amigo estan en el mismo team ?? Link to comment
Julian09123 Posted February 5, 2013 Author Share Posted February 5, 2013 Hay me anduvo gracias Fran Link to comment
Recommended Posts