Raised This Month: $51 Target: $400
 12% 

Owner system help!


Post New Thread Reply   
 
Thread Tools Display Modes
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 11-24-2016 , 12:24   Re: Owner system help!
Reply With Quote #11

like what i said superadmin have him own command and me wanna creat new flag like ADMIN_IMINUTY For OWNERS
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 12-01-2016 , 12:58   Re: Owner system help!
Reply With Quote #12

in my TH you have the answer ( Super Admin )

Quote:
Originally Posted by fysiks View Post
I didn't only provide a name, I provided the plugins (3) to do exactly this already without the extra file, which in my opinion just make things more cluttered and confusing. Using just a flag (customizable) so that administrators can have all admins in one file is the most convenient method IMO.

Even better yet, as DarkGod mentions in his reply (#20) would be to edit cmd_target() then recompile all plugins that use that function which would cascade the changes for all functions that use it.
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 12-01-2016 , 13:11   Re: Owner system help!
Reply With Quote #13

Just use the "z" flag?
__________________
B3none is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 12-01-2016 , 13:13   Re: Owner system help!
Reply With Quote #14

Quote:
Originally Posted by b3none View Post
Just use the "z" flag?
Dafuq? That's a no-admin flag, every normal player has it.
redivcram is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-01-2016 , 13:44   Re: Owner system help!
Reply With Quote #15

You can just use flag 'x' and define ADMIN_OWNER to (1 << 23) and use it in your plugins.
Also, 'w' is (1 << 22), '{' is (1 << 26), '|' is (1 << 27), '}' is (1 << 28 ) and '~' is (1 << 29).

The last two (30 and 31) go out of printable ASCII character range, so if you find a way to input it into a file you can still use them. However, that's not really user-friendly. You can change flags for commands separately in cmdaccess.ini in your configs folder so you can squish many flags into one for a specific "admin level", you don't have to use flag 'l' for RCON access for example.

@b3none, 'z' is reserved for normal users. If you give 'z' flag to an admin, is_user_admin() call will fail for them. However, is_user_admin() isn't really great in my opinion, always opt into the flag manager (cmdaccess.ini that is) for commands when you are creating new ones (they opt in by default when meeting certain criteria).

Last edited by klippy; 12-01-2016 at 13:52.
klippy is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 12-01-2016 , 13:56   Re: Owner system help!
Reply With Quote #16

thanx this so mutch helper
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
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 08:53.


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