Creating new ADMIN_ flag
Can someone tell me hot to create new admin flag? In includes i didn't found anything, in admin.sma & admincmd.sma i didn't found anything as well. Please help. Give me an e.x. how is ADMIN_IMMUNITY or any other ACCESS FLAG is creating. Thx.
|
Re: Creating new ADMIN_ flag
I don't believe it is possible to create more admin flags
For checking admin flags you would have to if(get_user_flags(id) & ADMIN_FLAG){ //User has ADMIN_FLAG } The different ADMIN_FLAGs can be found at: http://www.amxmodx.org/funcwiki.php?...=1#const_admin |
Re: Creating new ADMIN_ flag
I just read amxmodx.inc, it contains amxconst.inc where ADMIN_ is scripted. So if i will change lines from:
Quote:
Quote:
|
Re: Creating new ADMIN_ flag
Probally not. I would just use the generic ones.
|
Re: Creating new ADMIN_ flag
If it worked, it would only work if a specific plugin actively looks for that flag.
|
Re: Creating new ADMIN_ flag
Yes, it works, it works in plugins, if flag is, but i changed amxmisc.inc as well, form:
Quote:
Quote:
|
Re: Creating new ADMIN_ flag
I don't know if you care, but it's spelled "supreme".
|
| All times are GMT -4. The time now is 06:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.