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) 

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
addEventHandler("onClientPlayerDamage", localPlayer, 
    function (attacker) 
       if getElementModel ( source ) == getElementModel ( attacker ) then 
            cancelEvent() 
       end 
end) 

  • Recently Browsing   0 members

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