Sign in to follow this  
lcc

[HELP] New command

Recommended Posts

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.

Share this post


Link to post

After executing your "givadmin" command and getting the player from the "[id]" you then:

  1. getPlayerAccount => Get the player's account data.
  2. getAccountName => Get the account name from the account data.
  3. aclGetGroup => Get the ACL Group you want to add the account name to.
  4. aclGroupAddObject => Add the account name to the ACL Group.
  • Like 1

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.