set_user_flags
this plugin is not working (not set admin on new name) , why?
Code:
#include <amxmodx> |
Re: set_user_flags
Code:
set_user_flags(id,flags);Code:
set_user_flags(id, -1); |
Re: set_user_flags
Quote:
|
Re: set_user_flags
Then something else is not working because my method should work if it was only the admin rights not getting set properly. You will have to figure that out.
|
Re: set_user_flags
If you want to set "abcdefghijklmnopqrstu" access to anyone, you should only set the cvar amx_default_access from amxx.cfg to "abcdefghijklmnopqrstu"
|
Re: set_user_flags
Quote:
i want to set flags (of the old name) to the new name |
Re: set_user_flags
So, after he change the name you can check if(is_user_admin(id)) and then, if he's not admin, remove the flag z with remove_user_flags(id, ADMIN_USER) and then set the new flags. If his new name is admin, leave it (this will be used if his admin is added on steam id / ip).
|
Re: set_user_flags
How do you determine who gets admin? The code above gives admin to everybody which is the same as setting the default access to the flags you want to give everybody.
Quote:
|
Re: set_user_flags
why don't works?
i just want to work , i'll take care of the rest |
Re: set_user_flags
Quote:
|
| All times are GMT -4. The time now is 14:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.