Jullul7000 Posted January 29, 2013 Posted January 29, 2013 I want that guys they NOT JOINED A TEAM automatic go to team Unemployed but how i do that?
iPrestege Posted January 29, 2013 Posted January 29, 2013 Do you mean you want to put the player in the team automatically when entering the server?
Jullul7000 Posted January 29, 2013 Author Posted January 29, 2013 Do you mean you want to put the player in the team automatically when entering the server? Yes.
iPrestege Posted January 29, 2013 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
Jullul7000 Posted January 29, 2013 Author 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
iPrestege Posted January 29, 2013 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
TAPL Posted January 29, 2013 Posted January 29, 2013 https://wiki.multitheftauto.com/wiki/Scripting_Introduction
Jullul7000 Posted January 29, 2013 Author 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
iPrestege Posted January 29, 2013 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 ^ ^
Jullul7000 Posted January 29, 2013 Author 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..
iPrestege Posted January 29, 2013 Posted January 29, 2013 Works perfect here i just test it now ^^ Server Side .
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