Quote:
Originally Posted by Rapidgame7
Is there any way to let an admin read the team chat of the enemy team, on TF2?
I'm hosting a server with this, so everybody can talk without restrictions, except team chat, so the other team doesn't know what they can be planning.
But it came to my attention that some players would use team chat and insult someone in their team, but I don't want to keep going to the other team just to check.
Any help?
|
I made something like this for VSH
PHP Code:
public Action:Hook_CommandSayTeam(client, const String:command[], argc)
{
decl String:sMessage[256];
GetCmdArgString(sMessage, sizeof(sMessage));
new iAuthorTeam = GetClientTeam(client);
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i) && GetAdminFlag(GetUserAdmin(i), Admin_Kick) && iAuthorTeam != GetClientTeam(i))
{
PrintToChat(i, "(Admin: Other Team) %s%N{default}: %s", iAuthorTeam==2?"{red}":iAuthorTeam==3?"{blue}":"{gray}", client, sMessage);
}
}
return Plugin_Continue;
}
__________________