Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say", "HandleSay")
}
public HandleSay(id)
{
static said[192], cow;
read_args(said,191);
remove_quotes(said);
//remove the / if it is there
if( equali(said,"/",1 ) ) cow = 1;
else cow = 0;
new first_message[21], dummy[2]
strbreak(said[cow], first_message, 20, dummy, 1)
if(equali(first_message, "Server")) {
new Left[151], Right[151]
strbreak(said[cow], Left, 150, Right, 150)
strbreak(Right, Left, 150, Right, 150)
if( equali(Left, "rules") || equali(Left, "Rules") )
{
//ur code here
}
}
}