Raised This Month: $32 Target: $400
 8% 

[ANY] Chat Responder [UPDATED 2/27/16]


Post New Thread Reply   
 
Thread Tools Display Modes
TheZZL
Junior Member
Join Date: Sep 2020
Location: East Coast US
Old 01-12-2022 , 09:04   Re: [ANY] Chat Responder [UPDATED 2/27/16]
Reply With Quote #21

Quote:
Originally Posted by ZeNite View Post
Hey can it make a PrintToClient instead of PrintToChat??
Given by the starting code here,

HTML Code:
public void OnPluginStart()
{
    AutoExecConfig_SetFile("hl_chatresponder");
    AutoExecConfig_CreateConVar("hl_chatresponder_version", PLUGIN_VERSION, "Headline's Chat Responder : Version", FCVAR_NOTIFY|FCVAR_DONTRECORD);
    
    gcv_bPluginEnabled = AutoExecConfig_CreateConVar("hl_chatresponder_enable", "1", "Enable the plugin?\n (1 = Yes, 0 = No)", FCVAR_NONE, true, 0.0, true, 1.0);    
    
    gcv_sFilePath = AutoExecConfig_CreateConVar("hl_chatresponder_filepath", "configs/hl_chatresponder.txt", "File path to parse", FCVAR_NONE);
    
    gcv_bGlobalReply = AutoExecConfig_CreateConVar("hl_chatresponder_global_reply", "1", "Make it so the Bot's responses are visible to everyone?\n (1 = Yes, 0 = No)", FCVAR_NONE, true, 0.0, true, 1.0);    

    gcv_fCoolDownTime = AutoExecConfig_CreateConVar("hl_chatresponder_cooldown_time", "10.0", "Cooldown time for chat responses. (to prevent spam)", FCVAR_NONE, true, 0.0, true, 1.0);    

    AutoExecConfig_ExecuteFile();
    AutoExecConfig_CleanFile();
This specifically,
gcv_bGlobalReply = AutoExecConfig_CreateConVar("hl_chatresponder _global_reply", "1", "Make it so the Bot's responses are visible to everyone?\n (1 = Yes, 0 = No)", FCVAR_NONE, true, 0.0, true, 1.0);

If you add sm_cvar hl_chatresponder_global_reply "0" to server.cfg it should make this switch on your server. I will check this out tonight myself just to be sure.

Edit: The solution that makes more sense is to edit the .sp file and change the value there xD

Last edited by TheZZL; 01-12-2022 at 09:09.
TheZZL 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 20:07.


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