Raised This Month: $ Target: $400
 0% 

amxconst.inc


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 10-17-2010 , 15:33   amxconst.inc
Reply With Quote #1

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 -.-

Last edited by FiFiX; 10-17-2010 at 15:35.
FiFiX is offline
Send a message via Skype™ to FiFiX
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-17-2010 , 15:33   Re: amxconst.inc
Reply With Quote #2

Quote:
Originally Posted by FiFiX View Post
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 View Post
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)".
__________________

Last edited by fysiks; 10-17-2010 at 15:37.
fysiks is offline
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 10-17-2010 , 15:38   Re: amxconst.inc
Reply With Quote #3

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:
Attached Files
File Type: sma Get Plugin or Get Source (admincmd.sma - 596 views - 30.6 KB)

Last edited by FiFiX; 10-17-2010 at 15:47.
FiFiX is offline
Send a message via Skype™ to FiFiX
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-17-2010 , 15:38   Re: amxconst.inc
Reply With Quote #4

Re-read my comment, I edited it.
__________________

Last edited by fysiks; 10-17-2010 at 16:26.
fysiks is offline
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 10-17-2010 , 15:41   Re: amxconst.inc
Reply With Quote #5

I EDITED IT AND STOP YELLING AT ME? WHAT IS YOUR FUCKIN' PROBLEM MAN?
FiFiX is offline
Send a message via Skype™ to FiFiX
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-17-2010 , 15:43   Re: amxconst.inc
Reply With Quote #6

Because it's annoying when people post such long plugins. Use an attachment.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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