Jump to content

Problem of teams


matito6

Recommended Posts

Posted

Welcome.I have a script "team" and there are five teams and each has a different name, but when I go to the server that I have to assign to them, and I question whether you would do the same me to allocate the team, that is, I remember one adding and automatically added to by the team already?

It gives a link to the script: http://www.speedyshare.com/Yx7FG/team.rar

Thanks ;))

Posted

I gave a link and I would like to while he was being improved as I wrote would automatically add

function createTeamsOnStart () 
     createTeam ( "Server Owners", 255, 0, 0 ) 
     createTeam ( "Admins", 0, 0, 200 ) 
         createTeam ( "Moderators", 0, 255, 0 ) 
     createTeam ( "Members", 255, 255, 0 ) 
     createTeam ( "V.I.P", 100, 100, 100 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart  )  

Posted

Next time upload it to some other site, that one requests for register.

@Back on topic:

You can use the function:

getTeamFromName 

to get a team from it's name, and this function:

setPlayerTeam 

to set a player team.

Posted

of you could do this:

function createTeamsOnStart () 
     so=createTeam ( "Server Owners", 255, 0, 0 ) 
     a=createTeam ( "Admins", 0, 0, 200 ) 
         m=createTeam ( "Moderators", 0, 255, 0 ) 
     mem=createTeam ( "Members", 255, 255, 0 ) 
     vip=createTeam ( "V.I.P", 100, 100, 100 ) 
end 
addEventHandler ( "onResourceStart", resourceRoot, createTeamsOnStart  )  
  
addEventHandler("onPlayerJoin",root,function() 
    setPlayerTeam(source,mem) 
end) 

Posted

well, you could add them to a random teams, or if you want, you could set them to a team that's the same name as the ACL Group they're in.

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...