AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   AMX Super (https://forums.alliedmods.net/forumdisplay.php?f=111)
-   -   levels (https://forums.alliedmods.net/showthread.php?t=58646)

paulchullee 07-30-2007 18:05

levels
 
Hey, I am using amx_super on my clan's pub server and when I first give a member admin, I only give them kick and csay. What is the level that I need to give. Like in users.ini, it says custom level a,b,c, etc. and I can't find the list where is shows which command is what level. Thanks.

bmann_420 07-30-2007 19:16

Re: levels
 
These are the Commands and their Flags:


Code:
    register_concmd("amx_heal","admin_heal",ADMIN_LEVEL_A,"<nick, #userid, authid or @team> <HP to give>")     register_concmd("amx_armor","admin_armor",ADMIN_LEVEL_A,"<nick, #userid, authid or @team> <armor to give>")     register_concmd("amx_teleport","admin_teleport",ADMIN_LEVEL_A,"<nick, #userid or authid> [x] [y] [z]")     register_concmd("amx_userorigin","admin_userorigin",ADMIN_LEVEL_A,"<nick, #userid or authid")     register_concmd("amx_stack","admin_stack",ADMIN_LEVEL_A,"<nick, #userid or authid> [0|1|2]")     register_concmd("amx_alltalk","admin_alltalk",ADMIN_LEVEL_A,"[1 = ON | 0 = OFF]")     register_concmd("amx_gravity","admin_gravity",ADMIN_LEVEL_A,"<gravity #>")     register_concmd("amx_unammo", "admin_unammo", ADMIN_LEVEL_A, "<nick, #userid or @team> [0|1] - 0=OFF 1=ON")     register_concmd("amx_extend","admin_extend",ADMIN_LEVEL_A,"<added time to extend> : ex. 5, if you want to extend it five more minutes.")     register_concmd("amx_gag","admin_gag",ADMIN_LEVEL_A,"<nick, #userid or authid> <a|b|c> <time> - Flags: a = Normal Chat | b = Team Chat | c = Voicecomm")     register_concmd("amx_ungag","admin_ungag",ADMIN_LEVEL_A,"<nick, #userid or authid>")     register_concmd("amx_bury","admin_bury",ADMIN_LEVEL_B,"<nick, #userid, authid or @team>")     register_concmd("amx_unbury","admin_unbury",ADMIN_LEVEL_B,"<nick, #userid, authid or @team>")     register_concmd("amx_disarm","admin_disarm",ADMIN_LEVEL_B,"<nick, #userid, authid or @team>")     register_concmd("amx_slay2","admin_slay",ADMIN_LEVEL_B,"<nick, #userid, authid or @team> [1-Lightning|2-Blood|3-Explode]")     register_concmd("amx_rocket","admin_rocket",ADMIN_LEVEL_B,"<nick, #userid, authid or @team>")     register_concmd("amx_fire","admin_fire",ADMIN_LEVEL_B,"<nick, #userid or authid>")     register_concmd("amx_uberslap","admin_slap",ADMIN_LEVEL_B,"<nick, #userid or authid>")     register_concmd("amx_flash","admin_flash",ADMIN_LEVEL_B,"<nick, #userid, authid or @team> - Flashes player(s)")     register_clcmd("+adminvoice", "vocomStart")  //Custom Level B (Change in admin Voice Section)     register_clcmd("-adminvoice", "vocomStop")   //Custom Level B (Change in admin Voice Section)     register_concmd("amx_weapon","admin_weapon",ADMIN_LEVEL_C,"<nick, #userid, authid or @team> <weapon #>")     register_concmd("amx_revive","admin_revive",ADMIN_LEVEL_C,"<nick, #userid, authid or @team>")     register_concmd("amx_godmode","admin_godmode",ADMIN_LEVEL_C,"<nick, #userid or @team> [0|1|2] - 0=OFF 1=ON 2=ON + ON EACH ROUND")     register_concmd("amx_noclip","admin_noclip",ADMIN_LEVEL_C,"<nick, #userid, authid or @team> [0|1|2] - 0=OFF 1=ON 2=ON + ON EACH ROUND")     register_concmd("amx_drug","cmd_drug",ADMIN_LEVEL_C,"<@all, @team, nick, #userid, authid or @team>")     register_concmd("amx_speed","cmd_speed",ADMIN_LEVEL_C,"<nick, #userid, authid or @team> [0|1] -- gives/takes turbo running")     register_concmd("amx_givemoney","admin_givemoney",ADMIN_LEVEL_C," <nick, #userid or authid> <amount> - gives specified player money")     register_concmd("amx_takemoney","admin_takemoney",ADMIN_LEVEL_C," <nick, #userid or authid> <amount> - takes specified player money")     register_concmd("amx_glow", "cmd_glow", ADMIN_LEVEL_D, "<nick, #userid, authid, or @team/@all> <color> (or) <rrr> <ggg> <bbb> <aaa> -- lasts 1 round")     register_concmd("amx_glow2", "cmd_glow", ADMIN_LEVEL_D, "<nick, #userid, authid, or @team/@all> <color> (or)  <rrr> <ggg> <bbb> <aaa> -- lasts forever")     register_concmd("amx_glowcolors", "cmd_glowcolors", ADMIN_LEVEL_D, "shows a list of colors for amx_glow and amx_glow2")     register_concmd("amx_badaim","bad_aim",ADMIN_LEVEL_D,"<player> <On/off or length of time: 1|0|time> <Save?: 1|0>: Turn on/off bad aim on a player.")     register_concmd("amx_transfer", "cmd_transfer", ADMIN_LEVEL_D,"- <name> <CT/T/Spec> Transfers that player to the specified team")     register_concmd("amx_team", "cmd_transfer", ADMIN_LEVEL_D,"- <name> <CT/T/Spec> Transfers that player to the specified team")     register_concmd("amx_swap", "cmd_swap", ADMIN_LEVEL_D,"- <name 1> <name 2> Swaps two players with eachother")     register_concmd("amx_teamswap", "cmd_teamswap", ADMIN_LEVEL_D,"- Swaps two teams with eachother")     register_concmd("amx_lock", "admin_lock", ADMIN_LEVEL_D,"- <CT/T/Auto/Spec> - Locks selected team")     register_concmd("amx_unlock", "admin_unlock", ADMIN_LEVEL_D,"- <CT/T/Auto/Spec> - Unlocks selected team")     register_concmd("amx_exec","admin_exec",ADMIN_BAN,"<nick or @team> <command>")     register_concmd("amx_pass", "admin_pass", ADMIN_PASSWORD, "<server password> - Sets the server password")     register_concmd("amx_nopass", "admin_nopass", ADMIN_PASSWORD, "- Removes the server password")     register_concmd("amx_quit","admin_quit",ADMIN_LEVEL_E,"<nick, #userid, authid or @team>")     register_concmd("amx_shutdown","fnShutDown",ADMIN_RCON,"<seconds (1-20)> - shuts down the server in seconds")     register_concmd("amx_restart","fnShutDown",ADMIN_RCON,"<seconds (1-20)> - restarts the server in seconds")

Those are in accordance with amxconst.inc (amxmodx/scripting/include)

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" */ #define FLAG_KICK       (1<<0)  /* flag "a" */ #define FLAG_TAG        (1<<1)  /* flag "b" */ #define FLAG_AUTHID     (1<<2)  /* flag "c" */ #define FLAG_IP         (1<<3)  /* flag "d" */ #define FLAG_NOPASS     (1<<4)  /* flag "e" */

Which you can change how you see fit, and then re-compile.

paulchullee 07-30-2007 19:18

Re: levels
 
Oh okay..sorry I'm not good at plugins and stuff so I just use the .amxx and I don't know how to open the .sma. Hehe..thanks.

ZoranDaWicked 07-30-2007 21:17

Re: levels
 
Right click and open with notepad.

bmann_420 07-30-2007 22:02

Re: levels
 
"Get source" and open it with any text editor.

paulchullee 07-31-2007 10:05

Re: levels
 
Oh..it's just a text? I didn't know..lol

X-Script 07-31-2007 10:07

Re: levels
 
You can open files and edit them with any text editor you have, as long as you have the correct compiler to compile them with.

bmann_420 07-31-2007 21:26

Re: levels
 
Quote:

Originally Posted by X-Script (Post 510544)
as long as you have the correct compiler to compile them with.

lol

Well yes ish, as in the only compiler that comes with your amxmodx. (your version).
-I dont think their is a wrong compiler, except an out of date one. And that would require you to find an old compiler? I dunno

The best way is Here

fjollerik 08-13-2007 04:02

Re: levels
 
Ahh nice!!
Now tell me..
If i only want admin with menu access (flag U) to use some amx_super powers, (example: amx_heal), then do i need to change ADMIN_LEVEL_A to U ?
Here
Quote:

Change it From:
register_concmd("amx_heal","admin_heal",ADMIN_LEVEL_A,"<nick, #userid, authid or @team> <HP to give>")

To:
register_concmd("amx_heal","admin_heal",ADMIN_LEVEL_U,"<nick, #userid, authid or @team> <HP to give>")
Is it thats how it works, or have i got something wrong..?

Thanks again :up:

bmann_420 08-13-2007 05:29

Re: levels
 
Code:

register_concmd("amx_heal","admin_heal",ADMIN_MENU,"<nick, #userid, authid or @team> <HP to give>")
admin_menu is flag u
(amxconst.inc)

fjollerik 08-16-2007 08:50

Re: levels
 
Okay, hmm i have Immunity on my server and im the only one who have that.. and i only want me to use the amx_super because all the other admins i have cant control it..
Then i change it all to ADMIN_IMMUNITY ?

bmann_420 08-16-2007 14:44

Re: levels
 
LOL

Yep, and im sorry to hear that.

SCHWEDEN 02-29-2008 19:56

Re: levels
 
Well bmann, ur newest version seems very buggy and doesnt compile! after i made it compile, the flags are all messed up, 'level A admins' can use some 'admin ban flag' commands and so on. Could be something with amxx but probably not. Please have a look at it!

bmann_420 02-29-2008 20:27

Re: levels
 
Quote:

Originally Posted by SCHWEDEN (Post 591398)
Well bmann, ur newest version seems very buggy and doesnt compile! after i made it compile, the flags are all messed up, 'level A admins' can use some 'admin ban flag' commands and so on. Could be something with amxx but probably not. Please have a look at it!

Buggy? Its post in CAPS directly above where you download the plugin that you either A) compile locally or B) use the .amxx in the file

Since the compiler is not up to par with 1.8 required .inc files, you need to compile yourself, like many other plugins out their that are up to date more than the compiler.

I do not know about the reason behind people not having flags and being able to use commands, I have never ran into that or heard of that issue. If im not mistaken you can change the flag sets or permissions with 1.8 now in the cfg's, so it may have something todo with that.

Im curious as to know of a reason besides "it wont compile" that it is buggy

TheKeg 03-27-2008 11:48

Re: levels
 
Could someone please help me set certain admin permissions? I am new to this and it is all greek to me. If someone could help me, my steam is thekeg1234, I would really appreciate it.

TheKeg 03-27-2008 14:21

Re: levels
 
Could anyone please help me.......?

bmann_420 03-27-2008 14:47

Re: levels
 
You open up the sma in a text editor. Change the levels you want, based on amxconst.inc, save it. Then compile it either in your scripting folder or at the online ocmpiler.

4.0 will comming out shortly, and will have diff levels for all commands (alot easier to understand and manage)

SambamamaDK 04-27-2008 13:22

Re: levels
 
hey where didt i put "These are the Commands and their Flags" in ?

GerJenk 05-27-2008 14:40

Re: levels
 
Hey Guys just a little problem with levels. Let me explain...

I am trying to change the amx_weapons access level, its is currently set at:

register_concmd("amx_weapon","admin_weapon",A DMIN_LEVEL_C,"<nick, #userid, authid or @team> <weapon #>")

which we all know level_c is flag "o" according to amxconst. I have 38 admins on my server. And i am trying to change it so that its only works with admins with flag "c" which is ADMIN_KICK.

I opened the file which is found in addons/amxmodx/scripting/amx_super.sma

I then changed the line that is shown above to this:

register_concmd("amx_weapon","admin_weapon",A DMIN_KICK,"<nick, #userid, authid or @team> <weapon #>")

Saved the file, uploaded it back to the same file, overwritting the old amx_super.sma. Restarted my server.

BUT this is where my problem is. All players with flag "c" cant use amx_weapon. Its saying they do not have access to that command.

ANY ideas why ? Am i missing something ? Do i need to edit another file to change levels ?

bmann_420 05-27-2008 14:47

Re: levels
 
@ sam
? What?

@Gerjenk
You have to "compile" it locally. When you change the sma (which is not the plugin, yet) you need to compile it to the .amxx file (which now is the plugin, once compiled) Then go into the compiled folder, take out amx_super.amxx after its compiled and upload that into your plugins folder.

YamiKaitou 05-27-2008 14:54

Re: levels
 
Gejenk: Easy way to change access levels without having to edit the source, edit the cmdaccess.ini file


All times are GMT -4. The time now is 19:16.

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