Julian09123 Posted February 5, 2013 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 )
FraN-724 Posted February 5, 2013 Posted February 5, 2013 Prueba así for _,t in ipairs(getElementsByType("team")) do setTeamFriendlyFire ( t , false ) end
FraN-724 Posted February 5, 2013 Posted February 5, 2013 Pero estas seguro de que tu y tu amigo estan en el mismo team ??
Recommended Posts