Updated sm_rcon to use new ServerCommandEx native (bug 5018, r=ds).

This commit is contained in:
Asher Baker 2011-07-18 03:25:01 +01:00
parent 2271469d1b
commit ec11a31d9d

View File

@ -417,7 +417,14 @@ public Action:Command_Rcon(client, args)
LogAction(client, -1, "\"%L\" console command (cmdline \"%s\")", client, argstring);
ServerCommand("%s", argstring);
if (client == 0) // They will already see the response in the console.
{
ServerCommand("%s", argstring);
} else {
new String:responseBuffer[1024];
ServerCommandEx(responseBuffer, sizeof(responseBuffer), "%s", argstring);
ReplyToCommand(client, responseBuffer);
}
return Plugin_Handled;
}