LabiVila Posted July 9, 2013 Share Posted July 9, 2013 function teams () teams = createTeam ("Test", 0, 255, 0) end addEventHandler ("onResourceStart", resourceRoot, teams) I want to make this: If the player hauls the test tag (for example test|LabiVila), that player should automatically move to the Test team. Any help would be appreciated so much, thank you further. Link to comment
Lloyd Logan Posted July 9, 2013 Share Posted July 9, 2013 function teams () teams = createTeam ("Test", 0, 255, 0) end addEventHandler ("onResourceStart", resourceRoot, teams) I want to make this: If the player hauls the test tag (for example test|LabiVila), that player should automatically move to the Test team. Any help would be appreciated so much, thank you further. The main ones triggerEvent setPlayerTeam Link to comment
iPrestege Posted July 9, 2013 Share Posted July 9, 2013 Event : onPlayerJoin right? Functions : setPlayerTeam getPlayerName string.find Done! Link to comment
Lloyd Logan Posted July 9, 2013 Share Posted July 9, 2013 Yeah, just trigger that when the flag is hit/touched! Link to comment
LabiVila Posted July 9, 2013 Author Share Posted July 9, 2013 Thank you so much, both. Done thanks to you. Link to comment
Lloyd Logan Posted July 9, 2013 Share Posted July 9, 2013 Thank you so much, both.Done thanks to you. Easy as that. No problem! 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