Jump to content

No kill entre amigos


ImPeRiO

Recommended Posts

Posted

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 

Posted

-- client side:

addEventHandler("onClientPlayerDamage",root, 
function (attacker) 
      if (getElementModel(source) == getElementModel(attacker)) then 
           cancelEvent() 
      end 
end) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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 

Posted

Eso no tiene sentido, porque no usas el script que poste y listo?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
addEventHandler("onClientPlayerDamage", localPlayer, 
    function (attacker) 
       if getElementModel ( source ) == getElementModel ( attacker ) then 
            cancelEvent() 
       end 
end) 

"Everything exists, because otherwise nothing would", Bob Marley, 2015.

Posted

Me lo imaginaba, ya que ambos scripts son lo mismo.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...