Permalink
Browse files

Add #319

  • Loading branch information...
Bara committed May 9, 2018
1 parent 2b6c1b0 commit ad72454765325b79917d7f41bb40d34938adcc32
@@ -130,6 +130,7 @@ void SetupConfig()
g_cSilentIdRoles = AutoExecConfig_CreateConVar("ttt_silent_id_roles", "14", "2 = Innocent. 4 = Traitor. 8 = Detective. For other combinations, just sum the values. (i.e.: 14 (2+4+8) = All roles can Silent ID)");
g_cLogButtons = AutoExecConfig_CreateConVar("ttt_log_pressed_buttons", "0", "Log pressed buttons?", _, true, 0.0, true, 1.0);
g_cLogButtonsSpam = AutoExecConfig_CreateConVar("ttt_log_pressed_buttons", "5", "Prevent log spamming for the same button - Time in seconds to relog a button");
g_cOpenRulesOnPunish = AutoExecConfig_CreateConVar("ttt_open_rules_on_punish", "0", "Open rules menu for a player while he will be punished?", _, true, 0.0, true, 1.0);
g_cpluginTag.AddChangeHook(OnConVarChanged);
g_ckickImmunity.AddChangeHook(OnConVarChanged);
@@ -282,6 +282,7 @@ ConVar g_cSilentIdColor = null;
ConVar g_cSilentIdRoles = null;
ConVar g_cLogButtons = null;
ConVar g_cLogButtonsSpam = null;
ConVar g_cOpenRulesOnPunish = null;
Handle g_hRules = null;
bool g_bRules[MAXPLAYERS + 1] = { false, ... };
@@ -851,6 +851,11 @@ public Action Timer_Selection(Handle hTimer)
{
ForcePlayerSuicide(i);
g_iRoundSlays[i]--;
if (g_cOpenRulesOnPunish.BoolValue)
{
TTT_ClientOpenRules(i);
}
if (g_iRoundSlays[i] > 0)
{

0 comments on commit ad72454

Please sign in to comment.