Hi, I've noticed that some plugins people write have two versions of the same command, one that can only be used on one's self, and another that can be used on anyone. This allows you to give say donators access to use the command on themselves, but only proper admins the ability to use the command on anyone.
What I'd like to have is a plugin that allows me to separate the usage of a single command depending on the flag.
For example, sm_noclip. Ideally Donators could just use it on themselves, and admin can toggle it on anyone. If donators have a "d" flag and admin have the "a" flag, then if a Donator (name of "Joe") typed sm_noclip Joe, it would toggle on Joe, but if he tried sm_noclip Henry (a regular player), it would not toggle henry, it would either return saying you can't toggle on others, or it would toggle on Joe.
But the admin "Bob" could do sm_noclip Henry (and Henry would toggle), or sm_noclip Bob, and Bob would toggle.
Restricting who it could be used on would be based off the @ targeting groups here:
https://wiki.alliedmods.net/Admin_Co...#How_to_Target
Does this seem possible? It'd be a lot nicer to have this than the have to modify a bunch of different plugins.