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

levels


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
paulchullee
Junior Member
Join Date: Jul 2007
Location: Herndon, VA
Old 07-30-2007 , 18:05   levels
Reply With Quote #1

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.
paulchullee is offline
Send a message via AIM to paulchullee
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-30-2007 , 19:16   Re: levels
Reply With Quote #2

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.
__________________

Last edited by bmann_420; 03-21-2008 at 19:37. Reason: For 3.8.2
bmann_420 is offline
paulchullee
Junior Member
Join Date: Jul 2007
Location: Herndon, VA
Old 07-30-2007 , 19:18   Re: levels
Reply With Quote #3

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.
paulchullee is offline
Send a message via AIM to paulchullee
ZoranDaWicked
Member
Join Date: Apr 2004
Location: Philadelphia PA
Old 07-30-2007 , 21:17   Re: levels
Reply With Quote #4

Right click and open with notepad.
__________________
64.242.242.46:27015 Loyalty Over Death
ZoranDaWicked is offline
Send a message via AIM to ZoranDaWicked
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-30-2007 , 22:02   Re: levels
Reply With Quote #5

"Get source" and open it with any text editor.
__________________
bmann_420 is offline
paulchullee
Junior Member
Join Date: Jul 2007
Location: Herndon, VA
Old 07-31-2007 , 10:05   Re: levels
Reply With Quote #6

Oh..it's just a text? I didn't know..lol
paulchullee is offline
Send a message via AIM to paulchullee
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 07-31-2007 , 10:07   Re: levels
Reply With Quote #7

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.
X-Script is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 07-31-2007 , 21:26   Re: levels
Reply With Quote #8

Quote:
Originally Posted by X-Script View Post
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
__________________
bmann_420 is offline
fjollerik
Member
Join Date: Jul 2007
Location: Denmark
Old 08-13-2007 , 04:02   Re: levels
Reply With Quote #9

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
fjollerik is offline
Old 08-13-2007, 04:03
fjollerik
This message has been deleted by fjollerik.
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 08-13-2007 , 05:29   Re: levels
Reply With Quote #10

Code:
register_concmd("amx_heal","admin_heal",ADMIN_MENU,"<nick, #userid, authid or @team> <HP to give>")
admin_menu is flag u
(amxconst.inc)
__________________
bmann_420 is offline
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 21:39.


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