AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Admin At Hand (https://forums.alliedmods.net/showthread.php?t=66799)

Exolent[jNr] 02-09-2008 00:16

Admin At Hand
 
3 Attachment(s)
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! :rtfm:
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:
  1. Download the adminathand.amxx attached to the end of this post.
  2. Place adminathand.amxx in your server's addons/amxmodx/plugins folder.
  3. Open up your server's plugins.ini, located in your server's addons/amxmodx/configs folder.
  4. Inside the plugins.ini, write "adminathand.amxx" at the last line of the file.
  5. Save the file and restart the server. (amx_rcon restart)
Changelog:
  • Version 0.1
    - Initial release
  • Version 0.2
    - Fixed small bug
Credits:
  • Numb
    - for colorchat.inc
Current Version: 0.2

Exolent[jNr] 02-09-2008 00:16

Re: Admin At Hand
 
Suggestions are welcome!

Styles 02-09-2008 01:39

Re: Admin At Hand
 
This is unique, but I like it, ill take a look at the source.

ConnorMcLeod 02-09-2008 01:56

Re: Admin At Hand
 
I usully use amx_slapmenu and amx_kickmenu without opening console, but i like the aiming part :)

Xanimos 02-09-2008 02:11

Re: Admin At Hand
 
Lines 108 and 113 have useless calls to is_user_connected(). 113 could also be changed from an 'if' to an 'else' and accomplish the same thing.

Other than that, nicely done plugin.

Exolent[jNr] 02-09-2008 02:16

Re: Admin At Hand
 
Thanks Xanimos for catching that. It was supposed to check connection of "player" to see if "id" is spectating someone.
That way it would slay the person and not the person that you are spectating is looking at.

Fixed that, and a redundant cmd retrieval.

freamer 02-09-2008 02:45

Re: Admin At Hand
 
this was already done...
and in more dynamic way, this plugin looks like solid. We cant add any new commands.

ConnorMcLeod 02-09-2008 02:54

Re: Admin At Hand
 
You (nobody) are not allowed to attach .amxx files since UAIO story :mrgreen:

Exolent[jNr] 02-09-2008 02:59

Re: Admin At Hand
 
I thought i was supposed to because i used a non-default include?

ConnorMcLeod 02-09-2008 05:29

Re: Admin At Hand
 
- no - :nono:

Alka 02-09-2008 05:37

Re: Admin At Hand
 
Quote:

Originally Posted by freamer (Post 583182)
this was already done...
and in more dynamic way, this plugin looks like solid. We cant add any new commands.


chris 02-09-2008 10:50

Re: Admin At Hand
 
One word, "Amazing"

Emp` 02-09-2008 13:25

Re: Admin At Hand
 
Differences/Advantages over http://forums.alliedmods.net/showthread.php?t=399 ?

Exolent[jNr] 02-09-2008 14:00

Re: Admin At Hand
 
With this, there are no menus, you just press and aim.

Also, since I cant upload it, I need a moderator to upload the .amxx file :S

Zenith77 02-10-2008 10:51

Re: Admin At Hand
 
Deleted attachment. In the process of recompiling.

edit
Re-uploaded.

Exolent[jNr] 02-10-2008 14:47

Re: Admin At Hand
 
thanks!

kp_uparrow 02-10-2008 15:01

Re: Admin At Hand
 
aim menu has spray support, do u?

Exolent[jNr] 02-10-2008 15:59

Re: Admin At Hand
 
no but i could add it in if it makes it better.

Ka NIP Shun 02-10-2008 17:39

Re: Admin At Hand
 
i dont think this is better than this

http://forums.alliedmods.net/showthr...ght=point+slap

you can do more commands with this one

Exolent[jNr] 02-10-2008 21:37

Re: Admin At Hand
 
mine is also automatic, so you dont have to type anything

its meant for quick use when there is not much time to do it

Emp` 02-11-2008 00:01

Re: Admin At Hand
 
Unapproving for now as this is more functional.


All times are GMT -4. The time now is 20:29.

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