Former
GUI, Easy Command Menu - AMXmodX plugin by Ichy Show! aka. - Billy The Kid -
------------------------------------------------------------------------
How to use
Plug-in gives you possibility to execute any admin command through menu (slap, slay, gag, kick, ban etc.) on player:
- you are aiming,
[IMG]http://img83.**************/img83/3168/menubj3.th.jpg[/IMG]
- you are watching (as SPEC or DEAD) or
[IMG]http://img83.**************/img83/5561/deadspecdl3.th.jpg[/IMG]
- whose spraypaint (logo) you're aiming at.
[IMG]http://img83.**************/img83/240/spraymenuel0.th.jpg[/IMG]
[IMG]http://img83.**************/img83/8949/spraybykr9.th.jpg[/IMG]
1) Download plugin's default commandmenu.txt and place it in cstrike
2) Bind some commands to buttons through console if you want.
Example:
bind f7 "amx_sprayby"
bind f8 "amx_click amx_ip \, toggleconsole"
bind f10 "amx_click amx_slap"
3) Command menu appears when you press 'H' key (by default).
If you want to change default key for command menu, type for example:
bind f12 "+commandmenu"
------------------------------------------------------------------------
How to change commands in menu
1) Open commandmenu.txt
In default file you have:
Code:
"1" "Player IP" "amx_click amx_ip \, toggleconsole"
"2" "All IPs" "amx_ip *; toggleconsole"
"3" "Spray by" "amx_sprayby"
"4" "Admins" "amx_who; toggleconsole"
"5" "Punish"
{
"2" "Nick" "amx_click amx_nick \'Player\'"
"3" "Gag 10 minutes" "amx_click amx_gag 600"
"4" "Ungag" "amx_click amx_ungag"
"5" "Slap" "amx_click amx_slap"
"6" "Uberslap" "amx_clickc amx_uberslap"
"7" "Slay" "amx_clickc amx_slay"
"8" "Kick" "amx_clickc amx_kick"
}
"6" "Ban"
{
"1" "10 minutes ban" "amx_clickc amx_ban 10"
"2" "2 hours ban" "amx_clickc amx_ban 120"
"2" "6 hours ban" "amx_clickc amx_ban 360"
"3" "24 hours ban" "amx_clickc amx_ban 1500"
"4" "One week ban" "amx_clickc amx_ban 10000"
"5" "Permanent ban" "amx_clickc amx_ban 0"
}
"0" "Cancel" ""
Syntax is:
a)
"Number of line in menu/submenu" "
This part will be shown in game menu" "
Command that will be executed"
Ex.
"1" "
10 minutes ban" "
amx_clickc amx_ban 10"
[IMG]http://img509.**************/img509/4553/10bancv9.jpg[/IMG]
b) '{' opens submenu, '}' closes
Submenu:
[IMG]http://img509.**************/img509/2750/submenunb2.jpg[/IMG]
c) Notice that some commands have '
amx_click' and some '
amx_clickc' with
c on the end. Use '
amx_clickc' if you want confirmation menu after clicking on the command (ex. for ban - you don't want accidental ban), otherwise use '
amx_click' (ex. for slap)
Confirmation menu:
[IMG]http://img509.**************/img509/1167/confirmfi2.jpg[/IMG]
d) Notice
\, (backslash, comma)
ex. "1" "Player IP" "amx_click amx_ip \, toggleconsole"
It replaces '
;' (
semicolon) when you want multiple commands to be executed with one click. This example uses amx_ip on a player and drops console down.
e) Notice
\' (backslash, apostrophe)
ex. "2" "Nick" "amx_click amx_nick \'Player\'"
It replaces
" (
quotes)
------------------------------------------------------------------------
How to change plugin configuration
Change these values in plugin's .sma file and recompile:
#define PREVENT_TIME 2.0
#define AIMED_EXEC 1
#define AIMED_NOT_CLICKC 0
#define MESSAGES 1
#define ENABLE_CLICKC 1
#define MAX_COMMAND_LENGTH 64
#define REMEMBER 0
#define REGISTER_SPRAYS 1
#define SPRAY_TIME 120.0
#define MAX_DISTANCE 75
#define MAX_SPRAYID 32
------------------------------------------------------------------------
Versions
12.01.2007.
v1.0 Ready to go...
15.01.2007.
v1.1
- Added executing commands on players whos spray you're aiming at
- Added amx_sprayby command if you want to see who is spray owner
11.08.2009.
v1.3
- Added multilingual support
------------------------------------------------------------------------
Spray code taken from EKS's admin aimmenu/CheesyPeteza sprayid plugin
http://forums.alliedmods.net/showthr...=admin+aimmenu
http://djeyl.net/forum/index.php?showtopic=27236&hl
------------------------------------------------------------------------
Written & tested only on CS 1.6 server
------------------------------------------------------------------------
Here is the "default" commandmenu.txt (although some of commands won't work if you don't have appropriate plugins for them)
for this plug-in in case you don't want to set it up yourself. It goes in admin's, not server's cstrike folder.