Raised This Month: $32 Target: $400
 8% 

Easy Admin Command Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Emp` (115)
- Billy The Kid -
Member
Join Date: Oct 2006
Old 01-12-2007 , 13:30   Easy Admin Command Menu
Reply With Quote #1

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.
Attached Files
File Type: txt commandmenu.txt (768 Bytes, 2905 views)
File Type: sma Get Plugin or Get Source (easymenu.sma - 3882 views - 7.9 KB)
File Type: txt easymenu.txt (273 Bytes, 1622 views)
File Type: txt commandmenu-dutch.txt (1.6 KB, 1333 views)
__________________

Last edited by - Billy The Kid -; 12-15-2009 at 10:56.
- Billy The Kid - is offline
Old 01-12-2007, 20:44
Venny
This message has been deleted by Brad. Reason: "wat", rather, "what" is not a question. in this context, it's spam (even though I agree with you)
Old 01-12-2007, 22:01
Charming
This message has been deleted by Brad. Reason: spam
{*F.B.I*}&{*Super*}
Member
Join Date: Nov 2006
Location: United States
Old 01-13-2007 , 00:02   Re: GUI - easier use of admin commands
Reply With Quote #2

Look's like this plugin was already made by somone else, but good job Billy
__________________
+ Karma If I Helped You
{*F.B.I*}&{*The Best Public Server*}
192.168.0.101:27015
{*F.B.I*}&{*Super*} is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 01-13-2007 , 04:27   Re: GUI - easier use of admin commands
Reply With Quote #3

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...
__________________
- Billy The Kid - is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-13-2007 , 15:35   Re: GUI - easier use of admin commands
Reply With Quote #4

well this has more than just seven commands, oh and does this support aiming at sprays??
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
F34RInc
BANNED
Join Date: Dec 2005
Location: Medellín, Colombia
Old 01-13-2007 , 15:43   Re: GUI - easier use of admin commands
Reply With Quote #5

Wooo glad to see banshot made it into the menu.
F34RInc is offline
Send a message via AIM to F34RInc Send a message via MSN to F34RInc
- Billy The Kid -
Member
Join Date: Oct 2006
Old 01-14-2007 , 10:32   Re: GUI - easier use of admin commands
Reply With Quote #6

Quote:
Originally Posted by kp_uparrow View Post
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 View Post
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 - is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 01-15-2007 , 08:56   Re: GUI - easier use of admin commands
Reply With Quote #7

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...
__________________
- Billy The Kid - is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-16-2007 , 13:09   Re: GUI - easier use of admin commands
Reply With Quote #8

whats the difference from amx_point?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 01-16-2007 , 13:41  
Reply With Quote #9

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.
__________________
- Billy The Kid - is offline
Zolja
New Member
Join Date: Sep 2005
Old 01-19-2007 , 18:42   Re: GUI - easier use of admin commands
Reply With Quote #10

Work like a dream! Great!
Zolja is offline
Reply


Thread Tools
Display Modes

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:04.


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