Updated sm_rcon to use new ServerCommandEx native (bug 5018, r=ds).
This commit is contained in:
parent
2271469d1b
commit
ec11a31d9d
@ -417,7 +417,14 @@ public Action:Command_Rcon(client, args)
|
|||||||
|
|
||||||
LogAction(client, -1, "\"%L\" console command (cmdline \"%s\")", client, argstring);
|
LogAction(client, -1, "\"%L\" console command (cmdline \"%s\")", client, argstring);
|
||||||
|
|
||||||
|
if (client == 0) // They will already see the response in the console.
|
||||||
|
{
|
||||||
ServerCommand("%s", argstring);
|
ServerCommand("%s", argstring);
|
||||||
|
} else {
|
||||||
|
new String:responseBuffer[1024];
|
||||||
|
ServerCommandEx(responseBuffer, sizeof(responseBuffer), "%s", argstring);
|
||||||
|
ReplyToCommand(client, responseBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user