AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amxconst.inc (https://forums.alliedmods.net/showthread.php?t=140922)

FiFiX 10-17-2010 15:33

amxconst.inc
 
So in this file we have:
Code:

#define ADMIN_MENU        (1<<20)    /* flag "u" */
#define ADMIN_ADMIN        (1<<24)    /* flag "y" */
#define ADMIN_USER        (1<<25)    /* flag "z" */

Shoudn't that be:
Code:

#define ADMIN_MENU        (1<<20)    /* flag "u" */
#define ADMIN_ADMIN        (1<<21)    /* flag "y" */
#define ADMIN_USER        (1<<22)    /* flag "z" */

?

Now if we have some commands in admincmd.amxx with ADMIN_ADMIN access, admins without flag 'y' can use that command -.-

fysiks 10-17-2010 15:33

Re: amxconst.inc
 
Quote:

Originally Posted by FiFiX (Post 1327753)
So in this file we have:
Code:

#define ADMIN_MENU        (1<<20)    /* flag "u" */
#define ADMIN_ADMIN        (1<<24)    /* flag "y" */
#define ADMIN_USER        (1<<25)    /* flag "z" */

Shoudn't that be:
Code:

#define ADMIN_MENU        (1<<20)    /* flag "u" */
#define ADMIN_ADMIN        (1<<21)    /* flag "y" */
#define ADMIN_USER        (1<<22)    /* flag "z" */

?

No.

Quote:

Originally Posted by FiFiX (Post 1327753)
Now if we have some commands in admincmd.amxx with ADMIN_ADMIN this access, admins without flag 'y' can use that command -.-

If a command's access is ADMIN_ADMIN then it doesn't check any particular flag. It checks "is_user_admin(id)".

FiFiX 10-17-2010 15:38

Re: amxconst.inc
 
1 Attachment(s)
Code:

12  XaargO^ aKa xaa  STEAM_0:1:25121351  1204    Nie    Tak    bcdefijmnu
This admin can use:
amx_who
amx_plugins

I didn't check the rest of commands with ADMIN_ADMIN access...
This is my admincmd.sma:

fysiks 10-17-2010 15:38

Re: amxconst.inc
 
Re-read my comment, I edited it.

FiFiX 10-17-2010 15:41

Re: amxconst.inc
 
I EDITED IT AND STOP YELLING AT ME? WHAT IS YOUR FUCKIN' PROBLEM MAN?

fysiks 10-17-2010 15:43

Re: amxconst.inc
 
Because it's annoying when people post such long plugins. Use an attachment.


All times are GMT -4. The time now is 10:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.