AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Easy Admin Command Menu (https://forums.alliedmods.net/showthread.php?t=49762)

- Billy The Kid - 01-12-2007 13:30

Easy Admin Command Menu
 
11 Attachment(s)
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.

{*F.B.I*}&{*Super*} 01-13-2007 00:02

Re: GUI - easier use of admin commands
 
Look's like this plugin was already made by somone else, but good job Billy :)

- Billy The Kid - 01-13-2007 04:27

Re: GUI - easier use of admin commands
 
Yap, as I said, EKS's admin aimmenu plug-in (I don't know of any other) does the similar job, difference is that his menu is shown by plug-in so if you want to add/remove commands you have to write some code... at least that's what I think :) Here you bind any key to whatever command you want to use, or use commandmenu...

kp_uparrow 01-13-2007 15:35

Re: GUI - easier use of admin commands
 
well this has more than just seven commands, oh and does this support aiming at sprays??

F34RInc 01-13-2007 15:43

Re: GUI - easier use of admin commands
 
Wooo glad to see banshot made it into the menu.

- Billy The Kid - 01-14-2007 10:32

Re: GUI - easier use of admin commands
 
Quote:

Originally Posted by kp_uparrow (Post 426774)
well this has more than just seven commands, oh and does this support aiming at sprays??

No, it doesn't support aiming at sprays for now, but maybe I'll put CheesyPeteza code for that...

Quote:

Originally Posted by F34RInc (Post 426779)
Wooo glad to see banshot made it into the menu.

As said before, you can put whatever comand you want ;) as long as it looks like amx_command nick other parameters...

- Billy The Kid - 01-15-2007 08:56

Re: GUI - easier use of admin commands
 
Ok, I added code from CheesyPeteza's plug-in. Now you can use commands when aiming at player's spraypaint, and you can see the spraypaint's owner...

kp_uparrow 01-16-2007 13:09

Re: GUI - easier use of admin commands
 
whats the difference from amx_point?

- Billy The Kid - 01-16-2007 13:41

From what I can see in code of amx_point... that plug-in works only on people you aim - you can execute command on player you don't know name of, doesn't work while you're in SPEC/DEAD, doesn't work on sprays, and some code should be implemented to remember players you aimed... I think that's about it...

Thx for info about that plug-in existing thou :) and for suggestion to put spray-aimed command executing.

Zolja 01-19-2007 18:42

Re: GUI - easier use of admin commands
 
Work like a dream! Great!


All times are GMT -4. The time now is 07:11.

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