diff --git a/core/smn_halflife.cpp b/core/smn_halflife.cpp index c1d6a746..5fb2c3cf 100644 --- a/core/smn_halflife.cpp +++ b/core/smn_halflife.cpp @@ -273,7 +273,7 @@ static cell_t PrintToChat(IPluginContext *pContext, const cell_t *params) return pContext->ThrowNativeError("Client %d is not in game", client); } - char buffer[256]; + char buffer[192]; g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2); g_HL2.TextMsg(client, HUD_PRINTTALK, buffer); @@ -296,7 +296,7 @@ static cell_t PrintCenterText(IPluginContext *pContext, const cell_t *params) return pContext->ThrowNativeError("Client %d is not in game", client); } - char buffer[256]; + char buffer[192]; g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2); g_HL2.TextMsg(client, HUD_PRINTCENTER, buffer); diff --git a/plugins/include/clients.inc b/plugins/include/clients.inc index 645549a9..8d48544b 100644 --- a/plugins/include/clients.inc +++ b/plugins/include/clients.inc @@ -492,14 +492,3 @@ native Float:GetClientAvgPackets(client, NetFlow:flow); * @error Returns 0 if invalid userid. */ native GetClientOfUserId(userid); - -/** - * Executes a client command on the server without being networked. - * - * @param client Index of the client. - * @param fmt Format of the client command. - * @param ... Format parameters - * @noreturn - * @error Invalid client index, or client not connected. - */ -native FakeClientCommand(client, const String:fmt[], any:...); diff --git a/plugins/include/console.inc b/plugins/include/console.inc index 069fa9cd..a1d0f8e9 100644 --- a/plugins/include/console.inc +++ b/plugins/include/console.inc @@ -121,6 +121,17 @@ native ServerExecute(); */ native ClientCommand(client, const String:fmt[], any:...); +/** + * Executes a client command on the server without being networked. + * + * @param client Index of the client. + * @param fmt Format of the client command. + * @param ... Format parameters + * @noreturn + * @error Invalid client index, or client not connected. + */ +native FakeClientCommand(client, const String:fmt[], any:...); + /** * Sends a message to the server console. *