Raised This Month: $ Target: $400
 0% 

How to get Admin connection flag


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-03-2012 , 14:09   Re: How to get Admin connection flag
Reply With Quote #4

Quote:
Originally Posted by Torge View Post
I think he wanna write admin connect plugin or something like this, just use:

PHP Code:
if (get_user_flags(id) & ADMIN_BAN)
{
  
// Something


Quote:
Originally Posted by simanovich View Post
Admin Level Constants:

PHP Code:
#define ADMIN_ALL        0    //Everyone#define ADMIN_IMMUNITY        1    //Flag "a", immunity#define ADMIN_RESERVATION    2    //Flag "b", reservation#define ADMIN_KICK        4    //Flag "c", kick#define ADMIN_BAN        8    //Flag "d", ban#define ADMIN_SLAY        16    //Flag "e", slay#define ADMIN_MAP        32    //Flag "f", map change#define ADMIN_CVAR        64    //Flag "g", cvar change#define ADMIN_CFG        128    //Flag "h", config execution#define ADMIN_CHAT        256    //Flag "i", chat#define ADMIN_VOTE        512    //Flag "j", vote#define ADMIN_PASSWORD        1024    //Flag "k", sv_password#define ADMIN_RCON        2048    //Flag "l", rcon access#define ADMIN_LEVEL_A        4096    //Flag "m", custom#define ADMIN_LEVEL_B        8192    //Flag "n", custom#define ADMIN_LEVEL_C        16384    //Flag "o", custom#define ADMIN_LEVEL_D        32768    //Flag "p", custom#define ADMIN_LEVEL_E        65536    //Flag "q", custom#define ADMIN_LEVEL_F        131072    //Flag "r", custom#define ADMIN_LEVEL_G        262144    //Flag "s", custom#define ADMIN_LEVEL_H        524288    //Flag "t", custom#define ADMIN_MENU        1048576    //Flag "u", menus#define ADMIN_ADMIN        16777216    //Flag "y", default admin#define ADMIN_USER        33554432    //Flag "z", default user#define FLAG_KICK        1    //Auth flag "a", kick if no auth#define FLAG_TAG        2    //Auth flag "b", auth by tag#define FLAG_AUTHID        4    //Auth flag "c", auth by WON/Steam ID#define FLAG_IP            8    //Auth flag "d", auth by IP address#define FLAG_NOPASS        16    //Auth flag "e", don't require password 
Source: http://www.amxmodx.org/funcwiki.php?...=1#const_admin

Neither of these posts have anything to do with connection flags. Did you even go to the link?
__________________

Last edited by fysiks; 09-03-2012 at 19:33.
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 08:11.


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