Raised This Month: $12 Target: $400
 3% 

How to enable mesagges with the command /body?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iveto69
Member
Join Date: Aug 2018
Old 01-02-2019 , 13:18   How to enable mesagges with the command /body?
Reply With Quote #1

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 ?

Last edited by iveto69; 01-05-2019 at 14:07.
iveto69 is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 01-05-2019 , 17:41   Re: How to enable mesagges with the command /body?
Reply With Quote #2

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
__________________
micazoid is offline
iveto69
Member
Join Date: Aug 2018
Old 01-06-2019 , 07:21   Re: How to enable mesagges with the command /body?
Reply With Quote #3

Quote:
Originally Posted by micazoid View Post
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 ?
iveto69 is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: 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
__________________

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:15.


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