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)


All times are GMT -4. The time now is 17:34.

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