matito6 Posted July 25, 2012 Share Posted July 25, 2012 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 ) Link to comment
Castillo Posted July 25, 2012 Share Posted July 25, 2012 I really didn't understand you anything. Link to comment
matito6 Posted July 25, 2012 Author Share Posted July 25, 2012 I want this script automatically added to by the team, because I have to hand in a panel ... Do you understand that? Link to comment
matito6 Posted July 25, 2012 Author Share Posted July 25, 2012 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 ) Link to comment
Castillo Posted July 25, 2012 Share Posted July 25, 2012 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. Link to comment
matito6 Posted July 25, 2012 Author Share Posted July 25, 2012 I have a question, could you put together? what you wrote. my lua and these functions. ... Link to comment
Castillo Posted July 25, 2012 Share Posted July 25, 2012 I'm not here to make things for you, I'm here to help you fix your problems. Link to comment
Jaysds1 Posted July 25, 2012 Share Posted July 25, 2012 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) Link to comment
matito6 Posted July 25, 2012 Author Share Posted July 25, 2012 Can somebody is glued together? Solid is what he wrote and my lua? Link to comment
Jaysds1 Posted July 25, 2012 Share Posted July 25, 2012 does not work This only works if the player joins the server, but they join only one team. Link to comment
matito6 Posted July 25, 2012 Author Share Posted July 25, 2012 and can be done for several teams? Link to comment
Jaysds1 Posted July 25, 2012 Share Posted July 25, 2012 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. Link to comment
matito6 Posted July 25, 2012 Author Share Posted July 25, 2012 ACL group if you can do it? I would be grateful Link to comment
Jaysds1 Posted July 25, 2012 Share Posted July 25, 2012 Well, sorry, I can't, If you want to learn, you would need to do it your self here's the functions for ACL. Link to comment
Castillo Posted July 25, 2012 Share Posted July 25, 2012 You must use the function: isObjectInACLGroup with the event: onPlayerLogin. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now