| Mangrapes |
06-26-2005 21:44 |
Slash by mike_cao
1 Attachment(s)
This is the slash mod originally made my mike_cao for amx. I've been looking or waiting for this for a long time for AMXX and it wasn't coming so I decided I'm smart enough to realize what the <include> is, lets try changing <include> amxmod to amxmodx and it WORKS!!! I know it works on CS, but I haven't tested the others so I can't really say it's for soemthing else... someone want to test for me?
Basically what it does is it allows any admin commands that have the amx_ prefix to be done without the console. All you do is press 'y' to open chat and type your command, with / as the first character. It will read / as amx_ and perform the command. For example, say I wanted to make a green colored tsay that says hi, I would just type /tsay green hi and it will happen. It works for any command with the amx_ prefix.
Code:
/*
* AMXMOD script.
* (plugin_slash.sma)
* by mike_cao <[email protected]>
* This file is provided as is (no warranties).
*
* This plugin allows admins to execute amx commands
* using 'say' and a slash '/'. It can also execute
* a command on all players or a team using '@all' and
* '@team' in place of the authid/nick parameter.
*
* Examples:
* To kick a player type '/kick playername'
* To kick all players type '/kick @all'
* To kick all players on a team type '/kick @team:TEAMID'
* To ban all players for 10 minutes, type '/ban 10 @all'
*
* Additional Commands:
* Includes an IRC style '/me' command. If you say
* '/me sucks', it'll replace the '/me' with your name
* and print it to everyone.
*
* Includes a '/getteam' command in case you need to find
* the teamid for a player.
*
* Important: place this plugin at the bottom of your plugins.ini file so it doesn't interfere with other plugin that may use the '/'.
*
*/
|