mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 02:18:35 +00:00
Merge e42a878576 into 69f694d47c
This commit is contained in:
commit
6860869978
@ -584,15 +584,23 @@ public void ParamCheck(int client)
|
|||||||
char unquotedCommand[CMD_LENGTH];
|
char unquotedCommand[CMD_LENGTH];
|
||||||
UnQuoteString(g_command[client], unquotedCommand, sizeof(unquotedCommand), "#@");
|
UnQuoteString(g_command[client], unquotedCommand, sizeof(unquotedCommand), "#@");
|
||||||
|
|
||||||
|
// Use commands directly without unnecessary unquoting
|
||||||
|
char commands[10][CMD_LENGTH];
|
||||||
|
int count = ExplodeString(g_command[client], ";", commands, sizeof(commands), sizeof(commands[]));
|
||||||
|
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
TrimString(commands[i]);
|
||||||
if (outputItem.execute == Execute_Player) // assume 'player' type execute option
|
if (outputItem.execute == Execute_Player) // assume 'player' type execute option
|
||||||
{
|
{
|
||||||
FakeClientCommand(client, unquotedCommand);
|
FakeClientCommand(client, commands[i]);
|
||||||
}
|
}
|
||||||
else // assume 'server' type execute option
|
else // assume 'server' type execute option
|
||||||
{
|
{
|
||||||
InsertServerCommand(unquotedCommand);
|
InsertServerCommand(commands[i]);
|
||||||
ServerExecute();
|
ServerExecute();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
g_command[client][0] = '\0';
|
g_command[client][0] = '\0';
|
||||||
g_currentPlace[client].replaceNum = 1;
|
g_currentPlace[client].replaceNum = 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user