From 110440988dcdd9c97ba7bf4215ab69fd76847cf7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 9 Nov 2014 16:37:07 -0800 Subject: [PATCH] Port gag.sp. --- plugins/basecomm/gag.sp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/basecomm/gag.sp b/plugins/basecomm/gag.sp index 36cc94e6..15e21463 100644 --- a/plugins/basecomm/gag.sp +++ b/plugins/basecomm/gag.sp @@ -233,11 +233,11 @@ PerformMute(client, target, bool:silent=false) PerformUnMute(client, target, bool:silent=false) { g_Muted[target] = false; - if (GetConVarInt(g_Cvar_Deadtalk) == 1 && !IsPlayerAlive(target)) + if (g_Cvar_Deadtalk.IntValue == 1 && !IsPlayerAlive(target)) { SetClientListeningFlags(target, VOICE_LISTENALL); } - else if (GetConVarInt(g_Cvar_Deadtalk) == 2 && !IsPlayerAlive(target)) + else if (g_Cvar_Deadtalk.IntValue == 2 && !IsPlayerAlive(target)) { SetClientListeningFlags(target, VOICE_TEAM); } @@ -306,11 +306,11 @@ PerformUnSilence(client, target) { g_Muted[target] = false; - if (GetConVarInt(g_Cvar_Deadtalk) == 1 && !IsPlayerAlive(target)) + if (g_Cvar_Deadtalk.IntValue == 1 && !IsPlayerAlive(target)) { SetClientListeningFlags(target, VOICE_LISTENALL); } - else if (GetConVarInt(g_Cvar_Deadtalk) == 2 && !IsPlayerAlive(target)) + else if (g_Cvar_Deadtalk.IntValue == 2 && !IsPlayerAlive(target)) { SetClientListeningFlags(target, VOICE_TEAM); }