Quote:
Originally Posted by DPT
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
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
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.
__________________