Port gag.sp.

This commit is contained in:
David Anderson 2014-11-09 16:37:07 -08:00
parent 4a14b776db
commit 110440988d

View File

@ -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);
}