ImPeRiO Posted February 6, 2012 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
Castillo Posted February 6, 2012 Posted February 6, 2012 -- client side: addEventHandler("onClientPlayerDamage",root, function (attacker) if (getElementModel(source) == getElementModel(attacker)) then cancelEvent() end end)
ImPeRiO Posted February 6, 2012 Author 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
Castillo Posted February 6, 2012 Posted February 6, 2012 Eso no tiene sentido, porque no usas el script que poste y listo?
ImPeRiO Posted February 6, 2012 Author Posted February 6, 2012 Oky lo usare Muchas Gracias Edit: No funciona
diegofkda Posted February 7, 2012 Posted February 7, 2012 addEventHandler("onClientPlayerDamage", localPlayer, function (attacker) if getElementModel ( source ) == getElementModel ( attacker ) then cancelEvent() end end)
ImPeRiO Posted February 9, 2012 Author Posted February 9, 2012 Gracias a los dos me funciono se me estaba olvidando algo Falto
Castillo Posted February 9, 2012 Posted February 9, 2012 Me lo imaginaba, ya que ambos scripts son lo mismo.
Recommended Posts