Jump to content
  • 0

Friendly fire


Drakath

Question

Recommended Posts

  • 0
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        local allTeams = getElementsByType ( "team" ) 
        for index, theTeam in ipairs ( allTeams ) do 
            setTeamFriendlyFire ( theTeam, false ) 
        end 
    end 
) 

Link to comment
  • 0

That's all your script?

well, try this:

addEventHandler("onResourceStart",resourceRoot,function() 
    teamAll= createTeam("All") 
end) 
  
addEventHandler("onPlayerLogin",root,function() 
    setPlayerTeam(source,teamAll) 
end) 

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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