PHP Code:
public void OnPluginStart()
{
RegConsoleCmd("sm_body", Command_Body);
}
public Action Command_Body(int client, int args)
{
// HLStatsX daemon handle commands only as client say
LogPlayerEvent(client, "say", "/hlx_chat 1");
return Plugin_Handled;
}
make_player_command -
here
But there is a problem with state of hlx_chat value, because you don't know if it's 0 or 1
__________________