Raised This Month: $ Target: $400
 0% 

Slash by mike_cao


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mangrapes
Junior Member
Join Date: May 2005
Old 06-26-2005 , 21:44   Slash by mike_cao
Reply With Quote #1

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 '/'.
*
*/
Attached Files
File Type: sma Get Plugin or Get Source (admin_slash.sma - 11000 views - 5.2 KB)
Mangrapes is offline
 



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 19:12.


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