View Single Post
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-13-2007 , 03:01   Re: EAM (Extendable Admin Menu)
Reply With Quote #2

Example Menus:
Code:
To add a Category, {Name} followed by commands
To add a Command, [Name] followed by properties
To add a Property, -Name

Properties: COMMENT, ARG, ACCESS, EXEC
COMMENT - must be followed by a comment
ARG - must be followed by an Arg Type
  Arg Types: PLAYER, PLAYER_OR_TEAM, TEAM, RANGE, F_RANGE, OPTIONS, OPT_OR_PLYR, INPUT
    PLAYER and PLAYER_OR_TEAM - must be followed by a Player Type
      Player Types: USERID, AUTHID, USERNAME
    RANGE - must be followed by two numbers
    TEAM - nothing else to add
    F_RANGE - must be followed by two floats
    OPTIONS - must be followed by options
    OPT_OR_PLYR - must be followed by a Player Type and then options
    INPUT - followed by a comment
ACCESS - must be followed by an Access Type
  Acces Types: FLAG, CVAR
EXEC - must be followed by an Exec Type
  Exec Types: PLAYER, SERVER, ALL

{PODBOT}
[pb add]
-COMMENT "adds a bot"
-EXEC SERVER
[pb remove]
-COMMENT "removes a bot"
-EXEC SERVER
[pb killbots]
-COMMENT "kills all bots"
-EXEC SERVER
[pb fillserver]
-COMMENT "adds max bots"
-EXEC SERVER
[pb removebots]
-COMMENT "removes all bots"
-EXEC SERVER

{MONSTER}
[monster snark]
-COMMENT "spawns a snark"
-EXEC SERVER
-ARG PLAYER USERNAME
[monster]
-COMMENT "spawns other monsters"
-EXEC SERVER
-ARG OPTIONS "zombie" "headcrab" "barney"
-ARG PLAYER USERNAME
-ACCESS FLAG "c"

{SuperHero}
[amx_shaddxp]
-COMMENT "gives players xp"
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE -10000 10000
[amx_shsetlevel]
-COMMENT "sets players level"
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 0 100
[amx_shban]
-COMMENT "bans players powers"
-ARG PLAYER USERID

{AMX SUPER}
[amx_heal]
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 0 999
[amx_armor]
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 0 999
[amx_stack]
-ARG PLAYER USERNAME
-ARG RANGE 0 2
[amx_alltalk]
-ARG RANGE 0 1
[amx_gravity]
-ARG RANGE -9999 9999
[amx_bury]
-ARG PLAYER_OR_TEAM USERNAME
[amx_unbury]
-ARG PLAYER_OR_TEAM USERNAME
[amx_disarm]
-ARG PLAYER_OR_TEAM USERNAME
[amx_slay2]
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 1 3
-COMMENT "1-Lightning|2-Blood|3-Explode"
[amx_rocket]
-ARG PLAYER_OR_TEAM USERNAME
[amx_fire]
-ARG PLAYER USERNAME
[amx_uberslap]
-ARG PLAYER USERNAME
[amx_exec]
-ARG PLAYER_OR_TEAM USERNAME
-ARG INPUT "Please say something to execute"
[amx_pass]
-ARG INPUT "Please say a password"
[amx_nopass]
-COMMENT "Removes the server password"
[amx_status]
-COMMENT "Shows a detailed list of info on players"
[amx_revive]
-ARG PLAYER_OR_TEAM USERNAME
[amx_quit]
-ARG PLAYER_OR_TEAM USERNAME
[amx_gag]
-ARG PLAYER USERNAME
-ARG OPTIONS "a" "b" "c"
-ARG RANGE 0 900
-COMMENT "Flags: a = Normal Chat | b = Team Chat | c = Voicecomm"
[amx_ungag]
-ARG PLAYER USERNAME
[amx_weapon]
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 1 32
[amx_shutdown]
-COMMENT "Shuts down the server"
[amx_givemoney]
-ARG PLAYER USERNAME
-ARG RANGE 0 16000
[amx_takemoney]
-ARG PLAYER USERNAME
-ARG RANGE 0 16000
[amx_godmode]
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 0 2
-COMMENT "0=OFF 1=ON 2=ON + ON EACH ROUND"
[amx_noclip]
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 0 2
-COMMENT "0=OFF 1=ON 2=ON + ON EACH ROUND"
[amx_glow]
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 0 255
-ARG RANGE 0 255
-ARG RANGE 0 255
-ARG RANGE 0 255
-COMMENT "red green blue alpha"
[amx_glow2]
-ARG PLAYER_OR_TEAM USERNAME
-ARG RANGE 0 255
-ARG RANGE 0 255
-ARG RANGE 0 255
-ARG RANGE 0 255
-COMMENT "red green blue alpha - lasts one round"
[amx_unglow]
-ARG PLAYER_OR_TEAM USERNAME
-COMMENT "Removes glow on a user"
[amx_flash]
-ARG PLAYER_OR_TEAM USERNAME
-COMMENT "Flashes players"
[amx_lock]
-ARG TEAM
-COMMENT "Locks selected team"
[amx_unlock]
-ARG TEAM
-COMMENT "Unlocks selected team"
[amx_transfer]
-ARG PLAYER USERNAME
-ARG OPTIONS "CT" "T" "Spec"
-COMMENT "Transfers that player to the specified team"
[amx_swap]
-ARG PLAYER USERNAME
-ARG PLAYER USERNAME 
-COMMENT "Swaps two players with eachother"
[amx_teamswap]
-COMMENT "Swaps two teams with eachother"
[amx_ammo]
-ARG PLAYER USERNAME
[amx_unammo]
-ARG PLAYER USERNAME

Last edited by Emp`; 08-31-2007 at 01:44.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`