Quote:
Originally Posted by ZeNite
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