From ead369d78653e3ebe465e7bdc4cf95495ad54f10 Mon Sep 17 00:00:00 2001 From: Rushaway Date: Mon, 9 Feb 2026 19:29:38 +0100 Subject: [PATCH] fix(psay): block command usage from server console --- addons/sourcemod/scripting/CustomChatColors.sp | 8 +++++++- addons/sourcemod/scripting/include/ccc.inc | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/addons/sourcemod/scripting/CustomChatColors.sp b/addons/sourcemod/scripting/CustomChatColors.sp index f746e61..bb55dd1 100644 --- a/addons/sourcemod/scripting/CustomChatColors.sp +++ b/addons/sourcemod/scripting/CustomChatColors.sp @@ -2477,6 +2477,12 @@ public Action Command_SmChat(int client, int args) public Action Command_SmPsay(int client, int args) { + if (!client) + { + ReplyToCommand(client, "[SM] Cannot use this command from server console"); + return Plugin_Handled; + } + if (args < 2) { CReplyToCommand(client, "{green}[SM] {default}Usage: sm_psay "); @@ -4817,4 +4823,4 @@ public Action Timer_DelayedDBConnectCCC(Handle timer, any data) DB_Connect(); LateLoad(); return Plugin_Stop; -} +} \ No newline at end of file diff --git a/addons/sourcemod/scripting/include/ccc.inc b/addons/sourcemod/scripting/include/ccc.inc index 1500017..2d95143 100644 --- a/addons/sourcemod/scripting/include/ccc.inc +++ b/addons/sourcemod/scripting/include/ccc.inc @@ -11,7 +11,7 @@ #define CCC_V_MAJOR "8" #define CCC_V_MINOR "0" -#define CCC_V_PATCH "0" +#define CCC_V_PATCH "1" #define CCC_VERSION CCC_V_MAJOR..."."...CCC_V_MINOR..."."...CCC_V_PATCH