Admin levels and flags
1 Attachment(s)
I want to know the meanings of admin levels and I'm sure there a lot of people who can tell me that.
eg: ADMIN_IMMUNITY - flag "a", etc. Also I wanna ask you people for some help. Here I've got an invisible plugin, where I want to change ADMIN_BAN to flag "n" and I'll be very thankful if someone will change it for me. |
Re: Admin levels and flags
This is Scripting Help. It has nothing to do with AMXX Support/Help.
For admin levels check out amxconst.inc Why would you change ADMIN_BAN value? Even if it's local to your plugin ? Flag "n" is assigned to ADMIN_LEVEL_B. Just replace ADMIN_BAN with ADMIN_LEVEL_B in register_clcmd() and you're done. In PHP Code:
No need to change core flags. |
Re: Admin levels and flags
Its has in a way.
Try the attached file i changed admin lvl. and for the flags.. they are access level u can give urself or other admins in your server. ADMIN_IMMUNITY = Admin with flag a ( no admin can kick ban slay or use any other commands on him ) ADMIN_KICK = you have access to kick people.. and so one for other levels they have theyr short name like IMMUNITY or KICK or BAN and so on. |
Re: Admin levels and flags
That won't change anything.
You need to alter the bit pattern comparison since cmd_access() was not used. Two different functions aren't necessary to perform a toggle operation - even if you want separate commands. You should also check to see if cmd_target() returns 0. |
Re: Admin levels and flags
Huh?
i used GHW's custom compiler which works fine for me on almost all plugins. |
Re: Admin levels and flags
Almost all plugins use cmd_access(). This doesn't.
Code:
|
Re: Admin levels and flags
And here it comes...
THE MAGICAL MOVE... OFF TO THE SCRIPTING HELP FORUM!! ZOOM!! |
| All times are GMT -4. The time now is 16:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.