Raised This Month: $ Target: $400
 0% 

register_concomd with multiple access levels


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-12-2012 , 23:29   Re: register_concomd with multiple access levels
Reply With Quote #9

Quote:
Originally Posted by DPT View Post
Emp, to be honest, I did not understand you clearly..
He said you need to look in /addons/amxmodx/configs/cmdaccess.ini. Find your command and change the flags to what you want in that file. In your case it would be "dst".


Quote:
Originally Posted by DPT View Post
Is there any easier method of checking if the user has either ADMIN_BAN or ADMIN_LEVEL_H or ADMIN_LEVEL_G.. Can't we do it using the get_user_flags function? How would the if statement look like?
cmd_access() should work fine once you solve your issue. There is nothing wrong with cmd_access().

Quote:
Originally Posted by DPT View Post
This if statement didn't really work:

PHP Code:
new uflags get_user_flags(id)
if (
uflags != ADMIN_BAN uflags != ADMIN_LEVEL_G uflags != ADMIN_LEVEL_H)
return 
PLUGIN_HANDLED 
FYI, nothing in that if statement conditional is correct. I recommend that you learn about logical and bitwise operators and how they differ. You will never want to use logical operators with ADMIN_ constants.
__________________
fysiks is offline
 



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 09:51.


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