AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Aim Menu 2.0 (05/01/13) (https://forums.alliedmods.net/showthread.php?t=207486)

Skippy 02-03-2013 03:02

[ANY] Aim Menu 2.0 (05/01/13)
 
3 Attachment(s)
[ANY]Aim Menu 2.0

by Skipper


Description

Allows you to do @aim commands on the fly through a menu. You can add any commands that you wish to the menu also.


Commands

sm_aim - Targets the person you are looking at.

sm_reloadaim - Reloads the config file.

sm_settings - Opens cookie settings menu. You can set to select your target through a menu and to allow to use +use to target.


How does it work?

Look at someone in game and insert the aim command. A menu will pop up like this.
http://gyazo.com/66ac6a52586a24e7c28...png?1359875925

If you have Menu enabled through the cookie settings menu then you will be prompt with a menu like this.
http://gyazo.com/e58ee7c57a235c4c6c05cadd0b339c0c.png

The title indicates your targets name and steam id. You will also have options to use on the target. Kick, ban, and mute are already built into the plugin. When pushing on kick or ban it will come up with a menu of reasons. If you originally picked banned then after the reason menu it will come with a menu of times for the ban.


How does I install it?

1. Download the AimMenu.smx (By pressing Get Plugin)
2. Download the AimMenu.cfg
3. Place the AimMenu.smx in your addons/sourcemod/plugins folder
4. Place the AimMenu.cfg in your addons/sourcemod/config folder
5. Type in the rcon "sm plugins load AimMenu" (without quotations) or just change map.


How do I edit the config?

Open the config file located in addons/sourcemod/configs/AimMenu.cfg
You will be then presented with a config that looks like this:
Code:

"Aim Menu"
{               
        "Reasons"
        {
                "Hacking"
                {
                        "reason"                "Hacking"
                }
                "TK"
                {
                        "reason"                "Team Killing"
                }
                "Spamming"
                {
                        "reason"                "Spamming Mic/Chat"
                }
                "Spray"
                {
                        "reason"                "Inappropriate Spray"
                }
                "Language"
                {
                        "reason"                "Inappropriate Language"
                }
                "Ignore"
                {
                        "reason"                "Ignoring Admin"
                }
                "Exploit"
                {
                        "reason"                "Exploiting"
                }
        }               
        "BanTimes"
        {       
                "Permanent"
                {                       
                        "time"                "0"
                }               
                "10 Minutes"       
                {                       
                        "time"                "10"               
                }               
                "30 Minutes"               
                {                       
                        "time"                "30"               
                }               
                "1 Hour"               
                {                       
                        "time"                "60"               
                }               
                "1 Day"               
                {                       
                        "time"                "1440"               
                }               
                "1 Week"               
                {                       
                        "time"                "10080"               
                }               
                "1 Month"
                {                       
                        "time"                "302400"               
                }
        }
        "Custom"
        {
                "Slay"
                {
                        "cmd"        "sm_slay"
                }
                "Freeze"
                {
                        "cmd"        "sm_freeze"
                }
        }       
}

To add a ban/kick reason
Look at the example below of adding AFK to the menu.
Code:

        "Reasons"
        {
                "AFK"        // This will be the option that shows in the menu
                {
                        "reason"        "You are afk"        // This is the reason that the target will be kicked/banned
                }       
                "Hacking"
                {
                        "reason"                "Hacking"
                }

To add a ban time
Look at the example below of adding 1 minute to the menu.
Code:

        "BanTimes"
        {       
                "1 minute"                // Name of the Time that will show in the menu       
                {                       
                        "time"                "1"                // Amount of time(in minutes) the target will be banned for
                }       
                "Permanent"       
                {                       
                        "time"                "0"       
                }

TIP: The order it is in the config, the order it will show up in the menu
To add a custom command
Look at the examples I have in the menu.
Code:

        "Custom"
        {
                "Slay"        // Name of the Command that shows in the menu
                {
                        "cmd"        "sm_slay"                // The command that wants to be accessed
                }


Version Log
Code:

2.0 (5/1/12) -
- Fixed the error when not targeting someone.
- Added ability to change the settings to target someone through a menu.
- Added ability to change the settings to use +use to target someone.
- Added ClientPref Settings

1.1 (2/3/12)-
- Added ability to target the person you are spectating
- Changed name of plugin (in the code) from "Aim commands" to "Aim Menu"

1.0 (2/3/12) -
- Release


Todo
- Being able to have multiple targets
- Being able to type ban or kick reason (Custom Reason)

Thanks to Scipizoa for the idea of this plugin

Mirandor 02-03-2013 04:01

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
Sound usefull!

I'm waiting for the planed multiple/team target feature ;)

Eoj Nawoh 02-03-2013 08:47

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
We use this plugin on our server, it's extremely convenient to be able to target someone who may be breaking a rule or etc, then be able to take action.

Especially when players with foreign characters, invalid names or etc show up!

Scipizoa 02-03-2013 09:11

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
I said this same exact thing whhen i requested this. Awesome work skipper. Cant wait to get it running on my servers

Groger 02-03-2013 12:32

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
Very clever :)

How does this work with sourcebans?

Scipizoa 02-03-2013 13:21

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
I would assume adding the sourceban commands into the custom fields in the cfg

Skippy 02-03-2013 13:36

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
Quote:

Originally Posted by Groger (Post 1886262)
Very clever :)

How does this work with sourcebans?

You just insert the ban command into the config. Right now the plugin already has sm_ban built into it.

ChickenFighter 02-03-2013 13:38

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
Too bad this doesn't work on Left4Dead2 ^^

Plugin won't start up and there are no errors in my logs.

//edit: Woops, it was my fault. I accidently placed the .cfg in /l4d2/left4dead2/cfg/sourcemod :oops:

Everything is working now. Thank you very mutch for this plugin, very helpfull!

Noid 02-03-2013 19:28

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
Can this plugin be used in Deathcam/spectator mode while aiming at player/beeing in ego-perspective of a Player (targeted at the one you're spectating)?

Skippy 02-03-2013 19:31

Re: [ANY] Aim Menu 1.0 (02/02/13)
 
Quote:

Originally Posted by Noid (Post 1886541)
Can this plugin be used in Deathcam/spectator mode while aiming at player/beeing in ego-perspective of a Player (targeted at the one you're spectating)?

Hmm I will look into this. This will be on the todo list.


All times are GMT -4. The time now is 22:15.

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