Vicker Posted February 16, 2010 Share Posted February 16, 2010 Hello! How can I set that when player logins he is in team? Link to comment
Dark Dragon Posted February 16, 2010 Share Posted February 16, 2010 its pretty simple: function movePlayerToTeam(previousAccount,currentAccount,autologin) setPlayerTeam(source,getTeamFromName("Red")) --set the players team (source of the event) to the team with the name "Red" end addEventHandler("onPlayerLogin",getRootElement(),movePlayerToTeam) --adding an event handler for the onPlayerLogin event of course the team must be existing. use createTeam to create a team hope this helps Link to comment
Assassin-NL Posted February 18, 2010 Share Posted February 18, 2010 where in the acl this needs to be putted ? Link to comment
50p Posted February 18, 2010 Share Posted February 18, 2010 where in the acl this needs to be putted ? It's not in ACL. It's a script and needs to be put in a script file (usually .lua). You should learn about resources: https://wiki.multitheftauto.com/wiki/Resources 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