mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
Compare commits
3 Commits
c12d8c4fce
...
ca772fcd93
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca772fcd93 | ||
|
|
c4d5235217 | ||
|
|
e42a878576 |
@ -121,6 +121,13 @@
|
||||
"linux" "259"
|
||||
"linux64" "259"
|
||||
}
|
||||
"GetAttachment"
|
||||
{
|
||||
"windows" "211"
|
||||
"windows64" "211"
|
||||
"linux" "212"
|
||||
"linux64" "212"
|
||||
}
|
||||
}
|
||||
|
||||
"Keys"
|
||||
|
||||
@ -584,14 +584,22 @@ public void ParamCheck(int client)
|
||||
char unquotedCommand[CMD_LENGTH];
|
||||
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);
|
||||
}
|
||||
else // assume 'server' type execute option
|
||||
{
|
||||
InsertServerCommand(unquotedCommand);
|
||||
ServerExecute();
|
||||
TrimString(commands[i]);
|
||||
if (outputItem.execute == Execute_Player) // assume 'player' type execute option
|
||||
{
|
||||
FakeClientCommand(client, commands[i]);
|
||||
}
|
||||
else // assume 'server' type execute option
|
||||
{
|
||||
InsertServerCommand(commands[i]);
|
||||
ServerExecute();
|
||||
}
|
||||
}
|
||||
|
||||
g_command[client][0] = '\0';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user