Your thread should in the scripting section. Can you elaborate on what you are trying to achieve further?
Maybe you are trying to do the following? I have a command on my server "sm_smote" but I don't have the sourcecode for it to add print messages. So I created another "sm_smote" command in a new plugin to add the print messages.
PHP Code:
#include <sourcemod>
#pragma semicolon 1
public void OnPluginStart()
{
LoadTranslations("common.phrases");
RegAdminCmd("sm_smote", Command_Smotehook, ADMFLAG_GENERIC, "");
}
public Action Command_Smotehook(int client, int args)
{
char arg1[64];
GetCmdArgString(arg1, sizeof(arg1));
char target_name[MAX_TARGET_LENGTH];
int target_list[MAXPLAYERS], target_count;
bool tn_is_ml;
if ((target_count = ProcessTargetString(arg1, client, target_list, MAXPLAYERS, COMMAND_FILTER_CONNECTED, target_name, sizeof(target_name), tn_is_ml)) <= 0)
{
ReplyToTargetError(client, target_count);
return Plugin_Handled;
}
PrintToChatAll("\x01\x07FFA07A%N smote %s", client, target_name);
return Plugin_Handled;
}