|
Veteran Member
|
03-23-2016
, 14:32
Re: [req] Print silent commands when typed (/admin) into server console
|
#4
|
Spoiler
PHP Code:
#include <sourcemod>
public OnPluginStart(){ AddCommandListener(OnSay, "say"); AddCommandListener(OnSay, "say_team"); }
public Action:OnSay(client, const String:cmd[], argc){ if(client <= 0){ return Plugin_Continue; } new String:arg1[64]; GetCmdArg(1, arg1, sizeof(arg1)); if(FindCharInString(arg1, '/', false) == 0){ PrintToServer("%N: %s", client, arg1); } return Plugin_Continue; }
This prints to server but not to a log file.
Last edited by thecount; 03-23-2016 at 14:58.
|
|
|
|