nvm
This commit is contained in:
parent
6b625bc7ea
commit
4a9a8e06cf
@ -1,31 +0,0 @@
|
|||||||
#include <sourcemod>
|
|
||||||
|
|
||||||
public Plugin myinfo = {
|
|
||||||
name = "Block Chat Injection",
|
|
||||||
author = "unloze",
|
|
||||||
description = "Blocks console command injection via chat",
|
|
||||||
version = "1.0",
|
|
||||||
url = ""
|
|
||||||
};
|
|
||||||
|
|
||||||
public void OnPluginStart()
|
|
||||||
{
|
|
||||||
AddCommandListener(Command_Say, "say");
|
|
||||||
AddCommandListener(Command_Say, "say_team");
|
|
||||||
}
|
|
||||||
|
|
||||||
public Action Command_Say(int client, const char[] command, int argc)
|
|
||||||
{
|
|
||||||
if (client == 0) return Plugin_Continue;
|
|
||||||
|
|
||||||
char sArgs[256];
|
|
||||||
GetCmdArgString(sArgs, sizeof(sArgs));
|
|
||||||
|
|
||||||
if (StrContains(sArgs, "\";") != -1)
|
|
||||||
{
|
|
||||||
PrintToChat(client, "[UNLOZE] Message blocked.");
|
|
||||||
return Plugin_Handled;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Plugin_Continue;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user