AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   How to enable mesagges with the command /body? (https://forums.alliedmods.net/showthread.php?t=313257)

iveto69 01-02-2019 13:18

How to enable mesagges with the command /body?
 
Hello guys,

I saw on a HLStatsX:CE-server how, players after connect and they can with the command: /body - "Enable Chat messages on Server". How it works? Until they use the command they have no messages for points... !? How it works? With a plugin, or setup in HLStatsX:CE ?
I apologize for my bad English!
Thanks !

p.s. The location this server - Czech Republik , and /body=/points. After type in the chat /body - Enable Chat messages on Server.... Otherwise -> chat is disabled.. ??? How ?

micazoid 01-05-2019 17:41

Re: How to enable mesagges with the command /body?
 
I can not remember, if there is a command for clients to enable/disable chat messages. But what you are describing is a simple rename of that command (if it exists) in the hlstats.sp

iveto69 01-06-2019 07:21

Re: How to enable mesagges with the command /body?
 
Quote:

Originally Posted by micazoid (Post 2633074)
I can not remember, if there is a command for clients to enable/disable chat messages. But what you are describing is a simple rename of that command (if it exists) in the hlstats.sp

Is it possible to an additional plugin to perform this function ? Or - NO ??? That's the question ?

NomisCZ 01-07-2019 05:01

Re: How to enable mesagges with the command /body?
 
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


All times are GMT -4. The time now is 13:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.