Moved FakeClientCommand from clients.inc to console.inc since it was also moved internally
Fixed internal buffer sizes in PrintToChat() and PrintCenterText() --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40905
This commit is contained in:
parent
95dee16788
commit
897135194b
@ -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);
|
||||
|
@ -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:...);
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user