djm105 Posted March 26, 2013 Share Posted March 26, 2013 Hi, I want do a command /jointeam teamName, or players in rangs in ACL auto join to their teams example Admin join to team '~|EG|~Admin' I did it: function setPlayerTeam (thePlayer, commandName, teamName) end addCommandHandler ("jointeam", teamName) Yes, yes I know. This script is bad , but I'm newbie in Lua. Can you help me? (I'm Polish so sorry for my Language) Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 Hi, I want do a command /jointeam teamName, or players in rangs in ACL auto join to their teams example Admin join to team '~|EG|~Admin'I did it: function setPlayerTeam (thePlayer, commandName, teamName) endb addCommandHandler ("jointeam", teamName) Yes, yes I know. This script is bad , but I'm newbie in Lua. Can you help me? (I'm Polish so sorry for my Language) you read the wiki https://wiki.multitheftauto.com/wiki/SetPlayerTeam setPlayerTeam Link to comment
djm105 Posted March 26, 2013 Author Share Posted March 26, 2013 I read it and I can't do this ;( Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 I read it and I can't do this ;( function assignNewTeam ( source ) theTest = createTeam ( "~|EG|~Admin", 200, 0, 100 ) if theTest then setPlayerTeam ( source, theTest ) end end addCommandHandler ( "jointeam", assignNewTeam ) Link to comment
PaiN^ Posted March 26, 2013 Share Posted March 26, 2013 function assignNewTeam ( source ) theTest = createTeam ( "~|EG|~Admin", 200, 0, 100 ) if theTest then setPlayerTeam ( source, theTest ) end end addCommandHandler ( "jointeam", assignNewTeam ) Your code well add him to the ~|EG|~Admin team ! What he wants is : Hi, I want do a command /jointeam teamName... Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 function assignNewTeam ( source ) theTest = createTeam ( "~|EG|~Admin", 200, 0, 100 ) if theTest then setPlayerTeam ( source, theTest ) end end addCommandHandler ( "jointeam", assignNewTeam ) Your code well add him to the ~|EG|~Admin team ! What he wants is : Hi, I want do a command /jointeam teamName... I do not understand Link to comment
djm105 Posted March 26, 2013 Author Share Posted March 26, 2013 I want command /jointeam TeamName, example /jointeam Admin and I will join the admin team. Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 I want command /jointeam TeamName, example /jointeam Admin and I will join the admin team. I do not understand what do you want wiki: https://wiki.multitheftauto.com/wiki/SetPlayerTeam Link to comment
djm105 Posted March 26, 2013 Author Share Posted March 26, 2013 Ok, nevermind I find it https://community.multitheftauto.com/in ... includes=1 auto join with ACL Please Close Topic. Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 Ok, nevermind I find it https://community.multitheftauto.com/in ... includes=1 auto join with ACL Please Close Topic. okay 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