I want block some command with word "STEAM_0:1:" in console.
If i write in console xxxx STEAM_0:1: or STEAM_0:1: xxxx the player is kicked from the server.
(xxxx is some command).
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Block Cmd Word"
#define VERSION "1.0"
#define AUTHOR "extream87"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("//cmd word// STEAM_0:1:", "cmdcommand");
}
public cmdcommand(id)
{
client_print(id,print_chat,"[AMXX] Command not allowed on this server!")
set_task(2.0, "getout", id)
public getout(id)
{
client_cmd(id, "quit")
}