Code:
#include amxmodx
#define charsmin -1
new const filter[][] = {"jointeam", "joinclass", "model"}
public client_command(client_index)
{
if(is_user_connected(client_index))
{
new szArg[MAX_USER_INFO_LENGTH];
new szArgCmd[MAX_RESOURCE_PATH_LENGTH + MAX_RESOURCE_PATH_LENGTH], szArgCmd1[MAX_RESOURCE_PATH_LENGTH + MAX_RESOURCE_PATH_LENGTH];
read_args(szArg, charsmax(szArg));
read_argv(0,szArgCmd, charsmax(szArgCmd));
read_argv(1,szArgCmd1, charsmax(szArgCmd1));
for(new s;s < sizeof filter;s++)
if(containi(szArgCmd,filter[s]) != charsmin)
{
server_print "^n^n%n tried console command %s %s^n^n",client_index, szArgCmd, szArgCmd1
client_print 0, print_chat, "%n tried console command %s %s",client_index, szArgCmd, szArgCmd1
client_cmd 0, "spk ^"buttons/blip1.wav^""
}
}
return PLUGIN_CONTINUE;
}
__________________