Raised This Month: $ Target: $400
 0% 

Question about changing admin levels in .sma


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Calyx
New Member
Join Date: Nov 2004
Old 06-06-2006 , 20:08   Question about changing admin levels in .sma
Reply With Quote #1

Here's my problem..


Quote:
register_concmd("amx_rocket","rocket_player", ADMIN_LEVEL_B,"<authid, nick, @team or #userid>")
register_concmd("amx_weapon","admin_weapon",A DMIN_LEVEL_H,"<part of nick> or <@team> <weapon # to give > ")
I want to change rocket, to use the H flag. I tried to change it to look like this....
("amx_rocket","rocket_player",ADMIN_LEVEL_H," <authid, nick, @team or #userid>")

But, that didnt seem to work.

Anything obvious that I am doing wrong?
Calyx is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-06-2006 , 20:13  
Reply With Quote #2

the "h" flag is not ADMIN_LEVEL_H

from amxconst.inc
Code:
#define ADMIN_ALL       0   /* everyone */ #define ADMIN_IMMUNITY      (1<<0)  /* flag "a" */ #define ADMIN_RESERVATION   (1<<1)  /* flag "b" */ #define ADMIN_KICK      (1<<2)  /* flag "c" */ #define ADMIN_BAN       (1<<3)  /* flag "d" */ #define ADMIN_SLAY      (1<<4)  /* flag "e" */ #define ADMIN_MAP       (1<<5)  /* flag "f" */ #define ADMIN_CVAR      (1<<6)  /* flag "g" */ #define ADMIN_CFG       (1<<7)  /* flag "h" */ #define ADMIN_CHAT      (1<<8)  /* flag "i" */ #define ADMIN_VOTE      (1<<9)  /* flag "j" */ #define ADMIN_PASSWORD      (1<<10) /* flag "k" */ #define ADMIN_RCON      (1<<11) /* flag "l" */ #define ADMIN_LEVEL_A       (1<<12) /* flag "m" */ #define ADMIN_LEVEL_B       (1<<13) /* flag "n" */ #define ADMIN_LEVEL_C       (1<<14) /* flag "o" */ #define ADMIN_LEVEL_D       (1<<15) /* flag "p" */ #define ADMIN_LEVEL_E       (1<<16) /* flag "q" */ #define ADMIN_LEVEL_F       (1<<17) /* flag "r" */ #define ADMIN_LEVEL_G       (1<<18) /* flag "s" */ #define ADMIN_LEVEL_H       (1<<19) /* flag "t" */ #define ADMIN_MENU      (1<<20) /* flag "u" */ #define ADMIN_ADMIN     (1<<24) /* flag "y" */ #define ADMIN_USER      (1<<25) /* flag "z" */
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Calyx
New Member
Join Date: Nov 2004
Old 06-06-2006 , 20:15  
Reply With Quote #3

I actually meant T, not sure why I put H, was typing in a hurry.

Basically just wanted to give rocket access to someone with T flag.
Calyx is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-06-2006 , 20:37  
Reply With Quote #4

then what you did is correct, unless the plugin is badly coded and they have hard coded access level checks within the function. you need to compile the plugin and install it in your server, and then change maps.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Reply


Thread Tools
Display Modes

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 16:27.


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