well fuck i forgot about those temporary changes to selfmute
This commit is contained in:
parent
2920011832
commit
36a548df12
@ -28,7 +28,6 @@ bool g_bIsProtoBuf = false;
|
|||||||
|
|
||||||
Handle g_hCookieTorchMuted = null;
|
Handle g_hCookieTorchMuted = null;
|
||||||
|
|
||||||
bool g_bClientMuteTempOrPerm[MAXPLAYERS + 1];
|
|
||||||
|
|
||||||
Database g_hDatabase;
|
Database g_hDatabase;
|
||||||
|
|
||||||
@ -148,7 +147,7 @@ public void SQL_GetClientsToSelfMuteForClient(Database db, DBResultSet results,
|
|||||||
if (StrEqual(cSID, sAuth))
|
if (StrEqual(cSID, sAuth))
|
||||||
{
|
{
|
||||||
Ignore(client, i);
|
Ignore(client, i);
|
||||||
PrintToChat(client, "Player you permanent muted connected: %N", i);
|
//PrintToChat(client, "Player you permanent muted connected: %N", i);
|
||||||
UpdateIgnored(); //no clue if it needs to update that often.
|
UpdateIgnored(); //no clue if it needs to update that often.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -159,7 +158,6 @@ public void SQL_GetClientsToSelfMuteForClient(Database db, DBResultSet results,
|
|||||||
|
|
||||||
public void OnClientPostAdminCheck(int client)
|
public void OnClientPostAdminCheck(int client)
|
||||||
{
|
{
|
||||||
g_bClientMuteTempOrPerm[client] = false;
|
|
||||||
if(!IsValidClient(client) || IsFakeClient(client))
|
if(!IsValidClient(client) || IsFakeClient(client))
|
||||||
return;
|
return;
|
||||||
if (!g_hDatabase)
|
if (!g_hDatabase)
|
||||||
@ -331,10 +329,9 @@ public void OnMapEnd()
|
|||||||
|
|
||||||
public void OnClientDisconnect(int client)
|
public void OnClientDisconnect(int client)
|
||||||
{
|
{
|
||||||
g_bClientMuteTempOrPerm[client] = false;
|
|
||||||
if (!IsFakeClient(client))
|
if (!IsFakeClient(client))
|
||||||
{
|
{
|
||||||
delete_client_from_online(client);
|
//delete_client_from_online(client);
|
||||||
}
|
}
|
||||||
g_SpecialMutes[client] = MUTE_NONE;
|
g_SpecialMutes[client] = MUTE_NONE;
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
@ -691,7 +688,6 @@ public Action Command_SelfMutePerm(int client, int args)
|
|||||||
PrintToServer("[SM] Cannot use command from server console.");
|
PrintToServer("[SM] Cannot use command from server console.");
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
g_bClientMuteTempOrPerm[client] = true; //true for perm
|
|
||||||
|
|
||||||
if(args < 1)
|
if(args < 1)
|
||||||
{
|
{
|
||||||
@ -819,7 +815,6 @@ public Action Command_SelfMute(int client, int args)
|
|||||||
PrintToServer("[SM] Cannot use command from server console.");
|
PrintToServer("[SM] Cannot use command from server console.");
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
g_bClientMuteTempOrPerm[client] = false; //false for temp
|
|
||||||
|
|
||||||
if(args < 1)
|
if(args < 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user