|
Plugin Info:
|
Modification: ALL
Category: Admin Commands
|
|
Veteran Member
Join Date: Feb 2007
Location: Tennessee
|

02-09-2008
, 00:16
Admin At Hand
|
#1
|
Admin At Hand
by Exolent
Description:- Have you ever needed to slap, slay, or even kick a person immediately,
but didn't have the time to open up console or the amxmodmenu?
- With this plugin, you can slap, slay, and even kick a person just by looking at them!
Note:- Please read this whole post before asking for help!

Admin Commands:- +slap - Slaps a player that you are looking at or that you are spectating for an amount defined by the cvar look_slapamt.
- +slay - Slays a player that you are looking at or that you are spectating.
- +kick - Kicks a player that you are looking at or that you are spectating.
You must have the admin flag required for each command
In other words, you cannot do +slay without amx_slay access.
How do I use these commands?- Bind a key to these commands in your userconfig.cfg, then hold the key down and aim at the player.
- Example:
Code:
bind f +slay
bind g +slap
bind k +kick
- If you want to toggle it on and off, use these in your userconfig.cfg
Code:
// toggle +slap
bind yourkeyhere toggleslap
alias toggleslap slapon
alias slapon "+slap; alias toggleslap slapoff"
alias slapoff "-slap; alias toggleslap slapon"
// toggle +slay
bind yourkeyhere toggleslay
alias toggleslay slayon
alias slayon "+slay; alias toggleslay slayoff"
alias slayoff "-slay; alias toggleslay slayon"
// toggle +kick
bind yourkeyhere togglekick
alias togglekick kickon
alias kickon "+slay; alias togglekick kickoff"
alias kickoff "-slay; alias togglekick kickon"
Cvar:- look_slapamt <#> - amount of damage to deal a player from slapping them. (Use -1 for random amount 0-100) (Default: 0)
Installation:- Download the adminathand.amxx attached to the end of this post.
- Place adminathand.amxx in your server's addons/amxmodx/plugins folder.
- Open up your server's plugins.ini, located in your server's addons/amxmodx/configs folder.
- Inside the plugins.ini, write "adminathand.amxx" at the last line of the file.
- Save the file and restart the server. (amx_rcon restart)
Changelog:- Version 0.1
- Initial release
- Version 0.2
- Fixed small bug
Credits:Current Version: 0.2
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw
I love you exolent!
|
Last edited by Zenith77; 02-10-2008 at 10:57.
Reason: Reattached .amxx
|
|
|
|