mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
Merge e42a878576 into 69f694d47c
This commit is contained in:
commit
6860869978
@ -584,14 +584,22 @@ 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), "#@");
|
||||||
|
|
||||||
if (outputItem.execute == Execute_Player) // assume 'player' type execute option
|
// 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++)
|
||||||
{
|
{
|
||||||
FakeClientCommand(client, unquotedCommand);
|
TrimString(commands[i]);
|
||||||
}
|
if (outputItem.execute == Execute_Player) // assume 'player' type execute option
|
||||||
else // assume 'server' type execute option
|
{
|
||||||
{
|
FakeClientCommand(client, commands[i]);
|
||||||
InsertServerCommand(unquotedCommand);
|
}
|
||||||
ServerExecute();
|
else // assume 'server' type execute option
|
||||||
|
{
|
||||||
|
InsertServerCommand(commands[i]);
|
||||||
|
ServerExecute();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_command[client][0] = '\0';
|
g_command[client][0] = '\0';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user