Raised This Month: $66 Target: $400
 16% 

Smart Slash (Updated 9-29-09)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Orangutanz (13)
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-13-2008 , 19:48   Smart Slash (Updated 9-29-09)
Reply With Quote #1

This plugin allows admins to execute console commands using 'say' and a slash '/'.

* Note that the console commands can be prefixed with anything (amx_, sh_, pm_, etc.) or cannot be prefixed at all (amxmodmenu, uaio_menu, etc.).

Examples:
  • say /amx_slap Roach
  • say /kick Rukia
  • say /pokemod on
  • say /amx_glow Emp kat
  • say /glow Emp kat

The plugin removes what the player said from chat only if what was said is a valid console command.

This plugin does not interfere with other plugins, so it does not need to be at the bottom of the plugins.ini.

Additionally, there are several new features.

If commands do not have @TEAM functionality, SmartSlash can detect them and can try to emulate them.

SmartSlash also has @ functionality and displays a menu of all players and available teams when there is an @ in the command.

Another new feature is player detection. If SmartSlash detects that a nickname should be used, and there are multiple matches to the nickname you supplied, a menu is shown with all matches.

However, SmartSlash also supports other types of quick commands:
  • ? - search - use instead of a / for a menu with all matching commands. Ex: ?slap shows a menu for amx_slap and amx_uberslap (if both are available)
  • \ - repeater - use instead of a / for the command to be repeated every round start (only available for CS)

We don't stop there though. SmartSlash keeps track of all previous commands executed through itself. To see a menu with all of these commands, just say "/".

The enabled repeaters can be displayed by saying "\". Selecting one from the menu will remove it as a repeater.

Cvars:
Code:
ss_showcmd 1 // Show what command was used? 1-yes, 0-no
Attached Files
File Type: sma Get Plugin or Get Source (smart_slash.sma - 2140 views - 23.7 KB)

Last edited by Emp`; 10-08-2009 at 15:29.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
chris
Senior Member
Join Date: Mar 2007
Location: America
Old 04-13-2008 , 19:52   Re: Smart Slash
Reply With Quote #2

Tested and works perfect!
Good job
__________________
chris is offline
Send a message via AIM to chris
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-13-2008 , 19:56   Re: Smart Slash
Reply With Quote #3

What if two different plugins have similar commands, but the prefix is different?
For example:
hns_on
amx_on
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 04-13-2008 , 19:57   Re: Smart Slash
Reply With Quote #4

This is very useful, good job. Installing this later tonight or tomorrow.
BOYSplayCS is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-13-2008 , 20:08   Re: Smart Slash
Reply With Quote #5

Quote:
Originally Posted by X-olent View Post
What if two different plugins have similar commands, but the prefix is different?
For example:
hns_on
amx_on
currently only does the first registered command, will add some sort of support for that later
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 04-13-2008 , 20:13   Re: Smart Slash
Reply With Quote #6

Thank you Awesomeness
__________________
bmann_420 is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-14-2008 , 11:18   Re: Smart Slash
Reply With Quote #7

very nice!
Styles is offline
Send a message via AIM to Styles Send a message via MSN to Styles
maplebest
BANNED
Join Date: May 2007
Location: Sweden, Sverige
Old 04-14-2008 , 13:30   Re: Smart Slash
Reply With Quote #8

What happens if Im an admin on a mod like shero and type "/help"?
Doesnt that means it types "amx_help" instead?

Maybe a dumb question
maplebest is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-14-2008 , 13:50   Re: Smart Slash
Reply With Quote #9

That is why you put this plugin at the bottom of your list to prevent those types of errors
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 04-14-2008 , 13:59   Re: Smart Slash
Reply With Quote #10

Does this not eliminate that issue? (if the / command exists, it doesnt bother with the cmd?)
__________________
bmann_420 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 01:37.


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