PHP Code:
#include <sourcemod>
public void OnPluginStart()
{
RegConsoleCmd("sm_clips", Command_Callback);
RegConsoleCmd("sm_solidclips", Command_Callback);
}
public Action Command_Callback(int client, int args)
{
if (IsClientInGame(client))
{
char command[32];
GetCmdArg(0, command, sizeof(command));
if (StrEqual(command, "sm_clips", false))
{
FakeClientCommandEx(client, "r_drawClipBrushes 1");
} else {
FakeClientCommandEx(client, "r_drawClipBrushes 2");
}
}
return Plugin_Handled;
}