matito6 Posted July 25, 2012 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 )
Castillo Posted July 25, 2012 Posted July 25, 2012 I really didn't understand you anything. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
matito6 Posted July 25, 2012 Author 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?
Castillo Posted July 25, 2012 Posted July 25, 2012 Post your script here. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
matito6 Posted July 25, 2012 Author 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 )
Castillo Posted July 25, 2012 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
matito6 Posted July 25, 2012 Author Posted July 25, 2012 I have a question, could you put together? what you wrote. my lua and these functions. ...
Castillo Posted July 25, 2012 Posted July 25, 2012 I'm not here to make things for you, I'm here to help you fix your problems. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Jaysds1 Posted July 25, 2012 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) My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
matito6 Posted July 25, 2012 Author Posted July 25, 2012 Can somebody is glued together? Solid is what he wrote and my lua?
Jaysds1 Posted July 25, 2012 Posted July 25, 2012 does not work This only works if the player joins the server, but they join only one team. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Jaysds1 Posted July 25, 2012 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. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
matito6 Posted July 25, 2012 Author Posted July 25, 2012 ACL group if you can do it? I would be grateful
Jaysds1 Posted July 25, 2012 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. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Castillo Posted July 25, 2012 Posted July 25, 2012 You must use the function: isObjectInACLGroup with the event: onPlayerLogin. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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