plugins/basecommands.sp
changeset 3362 fb501ca9b4d3
parent 2775 8a4cfe1215a7
child 3452 fbd5f04f635e
     1.1 --- a/plugins/basecommands.sp	Mon Jul 18 03:23:03 2011 +0100
     1.2 +++ b/plugins/basecommands.sp	Mon Jul 18 03:25:01 2011 +0100
     1.3 @@ -417,7 +417,14 @@
     1.4  
     1.5  	LogAction(client, -1, "\"%L\" console command (cmdline \"%s\")", client, argstring);
     1.6  
     1.7 -	ServerCommand("%s", argstring);
     1.8 +	if (client == 0) // They will already see the response in the console.
     1.9 +	{
    1.10 +		ServerCommand("%s", argstring);
    1.11 +	} else {
    1.12 +		new String:responseBuffer[1024];
    1.13 +		ServerCommandEx(responseBuffer, sizeof(responseBuffer), "%s", argstring);
    1.14 +		ReplyToCommand(client, responseBuffer);
    1.15 +	}
    1.16  
    1.17  	return Plugin_Handled;
    1.18  }