Jump to content

Disable a command


SpecT

Recommended Posts

Hey guys! I want to ask you a question about the MTA commands (debugscript,aexec,...). Is it possible to add a restriciton - check player's serial (getPlayerSerial) and if its mine (for example) then it can be executed?

Example:

Im in my server and I want to turn my debugscript to 3 so i write /debugscript 3 and everything works fine.

But if there is another admin and wants to turn his debugscript he wont be able cuz his serial isnt the one it has to be.

I hope you understood me and if you didnt please ask, i will explain again.

Thanks!

Link to comment

Owwwwwww ... I didn't know about that event (onPlayerCommand).

Thanks guys!

You can change the acces to aexec and debugscript in acl.xml

Yes but for example I dont want another admins to access to the aexec or debugscript.

Thanks anyway

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...