Jullul7000 Posted January 29, 2013 Share Posted January 29, 2013 I want that guys they NOT JOINED A TEAM automatic go to team Unemployed but how i do that? Link to comment
iPrestege Posted January 29, 2013 Share Posted January 29, 2013 Do you mean you want to put the player in the team automatically when entering the server? Link to comment
Jullul7000 Posted January 29, 2013 Author Share Posted January 29, 2013 Do you mean you want to put the player in the team automatically when entering the server? Yes. Link to comment
iPrestege Posted January 29, 2013 Share Posted January 29, 2013 Do you mean you want to put the player in the team automatically when entering the server? Yes. Use: * CreateTeam * SetPlayerTeam * OnPlayerJoin Link to comment
Jullul7000 Posted January 29, 2013 Author Share Posted January 29, 2013 Do you mean you want to put the player in the team automatically when entering the server? Yes. Use: * CreateTeam * SetPlayerTeam * OnPlayerJoin I cant script pls hellp a bit Link to comment
iPrestege Posted January 29, 2013 Share Posted January 29, 2013 (edited) Unemployed = createTeam ( "Unemployed", 0, 255, 0 ) function Team() setPlayerTeam ( source, Unemployed ) end addEventHandler ( "onPlayerJoin", root, Team) Server Side ! Next time, try for once Edited January 29, 2013 by Guest Link to comment
TAPL Posted January 29, 2013 Share Posted January 29, 2013 https://wiki.multitheftauto.com/wiki/Scripting_Introduction Link to comment
Jullul7000 Posted January 29, 2013 Author Share Posted January 29, 2013 Unemployed = createTeam ( "Unemployed", 0, 255, 0 ) function Team() setPlayerTeam ( source, Unemployed ) end addEventHandler ( "onPlayerJoin", root, Team) Server Side ! Next time, try for once I already created a team to create the team unemployed Link to comment
iPrestege Posted January 29, 2013 Share Posted January 29, 2013 So, should to be like that ^^ : Server Side!! : function TeamFrom() local theTeam = getTeamFromName ( "Unemployed" ) if ( theTeam ) then setPlayerTeam ( source, theTeam ) end end addEventHandler ( "onPlayerJoin", root, TeamFrom) Have not been tested, but should work ^ ^ Link to comment
Jullul7000 Posted January 29, 2013 Author Share Posted January 29, 2013 So, should to be like that ^^ :Server Side!! : function TeamFrom() local theTeam = getTeamFromName ( "Unemployed" ) if ( theTeam ) then setPlayerTeam ( source, theTeam ) end end addEventHandler ( "onPlayerJoin", root, TeamFrom) Have not been tested, but should work ^ ^ doenst work.. Link to comment
iPrestege Posted January 29, 2013 Share Posted January 29, 2013 Works perfect here i just test it now ^^ Server Side . 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