lcc Posted March 14, 2019 Share Posted March 14, 2019 So basically i want to create a new command, which would be a secret command. Under the secret command I mean, for example if I type: givadmin [id] then I get administrative rights. How to do it? Thanks. Link to comment
Mr.Loki Posted March 14, 2019 Share Posted March 14, 2019 After executing your "givadmin" command and getting the player from the "[id]" you then: getPlayerAccount => Get the player's account data. getAccountName => Get the account name from the account data. aclGetGroup => Get the ACL Group you want to add the account name to. aclGroupAddObject => Add the account name to the ACL Group. 1 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