Custom acces flags
How i can make a custom flag like X,Y,V. I want to make a small vip plugin with one of these flags. :)
|
Re: Custom acces flags
Look in amxconst.inc and just continue the pattern. But, don't modify the include, you can just use a similar definition at the top of your plugin.
|
Re: Custom acces flags
something like this ?
PHP Code:
|
Re: Custom acces flags
Quote:
|
Re: Custom acces flags
Code:
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */Code:
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */But you should have enough with already existing ADMIN_LEVEL_ flags and combining them. Exemple : ADMIN_LEVEL_A | ADMIN_LEVEL_D ADMIN_LEVEL_B | ADMIN_LEVEL_D ADMIN_LEVEL_A | ADMIN_LEVEL_D | ADMIN_LEVEL_G | ADMIN_LEVEL_H |
Re: Custom acces flags
Quote:
I am curious as to why the developers would exclude those three in AMX Mod X. You already have 89% of them defined already so why not just do them all? No harm done if they are there. |
Re: Custom acces flags
May be it was reserved for something in the future ?
Also, flag system allows 32 * 32 flags, only 1*32 is used, why ? |
Re: Custom acces flags
Quote:
|
Re: Custom acces flags
Code:
/* Sets the users flags with the assignment by bitwise OR operator. */I'm still wondering why plugins like VIP plugins or admins deference don't use such system, would just require a little api so at plugin_cfg you could pick a free slot :) |
Re: Custom acces flags
Quote:
|
| All times are GMT -4. The time now is 20:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.