ImPeRiO Posted February 6, 2012 Share Posted February 6, 2012 Miren de esta manera funciona por team quiero buscar una manera de que no puedan matarce por skin si tienen el mismo numero de skin local allTeams = getElementsByType ( "team" ) for index, theTeam in ipairs(allTeams) do if ( getTeamFriendlyFire ( theTeam ) == true ) then setTeamFriendlyFire ( theTeam, false ) end end Link to comment
Castillo Posted February 6, 2012 Share Posted February 6, 2012 -- client side: addEventHandler("onClientPlayerDamage",root, function (attacker) if (getElementModel(source) == getElementModel(attacker)) then cancelEvent() end end) Link to comment
ImPeRiO Posted February 6, 2012 Author Share Posted February 6, 2012 Una pregunta Funcionaria asi ? local allskins = getElementsByType ( "skins" ) for index, theskin in ipairs(allskins) do if ( getskinFriendlyFire ( theskins ) == true ) then setskinFriendlyFire ( theskins, false ) end end Link to comment
Castillo Posted February 6, 2012 Share Posted February 6, 2012 Eso no tiene sentido, porque no usas el script que poste y listo? Link to comment
ImPeRiO Posted February 6, 2012 Author Share Posted February 6, 2012 Oky lo usare Muchas Gracias Edit: No funciona Link to comment
diegofkda Posted February 7, 2012 Share Posted February 7, 2012 addEventHandler("onClientPlayerDamage", localPlayer, function (attacker) if getElementModel ( source ) == getElementModel ( attacker ) then cancelEvent() end end) Link to comment
ImPeRiO Posted February 9, 2012 Author Share Posted February 9, 2012 Gracias a los dos me funciono se me estaba olvidando algo Falto Link to comment
Castillo Posted February 9, 2012 Share Posted February 9, 2012 Me lo imaginaba, ya que ambos scripts son lo mismo. Link to comment
Recommended Posts