plugins/basecomm/gag.sp
changeset 3645 80c9ae186971
parent 3340 7eb2b72e42d8
child 3761 7381f15e5d53
     1.1 --- a/plugins/basecomm/gag.sp	Mon Sep 03 14:46:05 2012 +0100
     1.2 +++ b/plugins/basecomm/gag.sp	Mon Sep 03 20:45:11 2012 +0100
     1.3 @@ -213,7 +213,9 @@
     1.4  PerformMute(client, target, bool:silent=false)
     1.5  {
     1.6  	g_Muted[target] = true;
     1.7 -	SetClientListeningFlags(target, VOICE_MUTED);	
     1.8 +	SetClientListeningFlags(target, VOICE_MUTED);
     1.9 +	
    1.10 +	FireOnClientMute(client, true);
    1.11  	
    1.12  	if (!silent)
    1.13  	{
    1.14 @@ -237,6 +239,8 @@
    1.15  		SetClientListeningFlags(target, VOICE_NORMAL);
    1.16  	}
    1.17  	
    1.18 +	FireOnClientMute(client, false);
    1.19 +	
    1.20  	if (!silent)
    1.21  	{
    1.22  		LogAction(client, target, "\"%L\" unmuted \"%L\"", client, target);
    1.23 @@ -246,6 +250,7 @@
    1.24  PerformGag(client, target, bool:silent=false)
    1.25  {
    1.26  	g_Gagged[target] = true;
    1.27 +	FireOnClientGag(client, true);
    1.28  	
    1.29  	if (!silent)
    1.30  	{
    1.31 @@ -256,6 +261,7 @@
    1.32  PerformUnGag(client, target, bool:silent=false)
    1.33  {
    1.34  	g_Gagged[target] = false;
    1.35 +	FireOnClientGag(client, false);
    1.36  	
    1.37  	if (!silent)
    1.38  	{
    1.39 @@ -268,12 +274,14 @@
    1.40  	if (!g_Gagged[target])
    1.41  	{
    1.42  		g_Gagged[target] = true;
    1.43 +		FireOnClientGag(client, true);
    1.44  	}
    1.45  	
    1.46  	if (!g_Muted[target])
    1.47  	{
    1.48  		g_Muted[target] = true;
    1.49  		SetClientListeningFlags(target, VOICE_MUTED);
    1.50 +		FireOnClientMute(client, true);
    1.51  	}
    1.52  	
    1.53  	LogAction(client, target, "\"%L\" silenced \"%L\"", client, target);
    1.54 @@ -284,6 +292,7 @@
    1.55  	if (g_Gagged[target])
    1.56  	{
    1.57  		g_Gagged[target] = false;
    1.58 +		FireOnClientGag(client, false);
    1.59  	}
    1.60  	
    1.61  	if (g_Muted[target])
    1.62 @@ -301,7 +310,8 @@
    1.63  		else
    1.64  		{
    1.65  			SetClientListeningFlags(target, VOICE_NORMAL);
    1.66 -		}	
    1.67 +		}
    1.68 +		FireOnClientMute(client, false);
    1.69  	}
    1.70  	
    1.71  	LogAction(client, target, "\"%L\" unsilenced \"%L\"", client, target);