View Single Post
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: $this->Czech_Republic
Old 01-07-2019 , 05:01   Re: How to enable mesagges with the command /body?
Reply With Quote #4

PHP Code:

public void OnPluginStart()
{
    
RegConsoleCmd("sm_body"Command_Body);
}

public 
Action Command_Body(int clientint 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
__________________



Steam: NomisCZ

Last edited by NomisCZ; 01-07-2019 at 05:03.
NomisCZ is offline