Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

dod_team_chat

by Unknown · 2005-05-05

recovered from the server

From the first post

Recovered from the archived server. This was never posted on the forum, so there is no thread behind it and no author post to quote — the attribution below comes from the plugin's own register_plugin() call where it has one.

Files

dod_team_chat.amxx Compiled Plugin 2 KB Download

Decompiled source reconstructed

dod_team_chat.amxx was published compiled only. This Pawn was recovered from the bytecode with Lysis — 93 lines. Strings, cvars and the plugin registration survive; local variable names do not. It is an approximation, not the author's file.

// Decompiled from dod_team_chat.amxx by Lysis.n// This is RECONSTRUCTED source, not the author's original: withoutn// debug symbols the variable names are lost and control flow isn// rebuilt from bytecode. Treat it as a readable approximation.nnpublic client_putinserver(_arg0)n{n	if (!get_cvar_num("dod_teamchat"))n	{n		return 0;n	}n	sub_5ec(_arg0, "");n	return 0;n}nnpublic hook_team(_arg0)n{n	if (!get_cvar_num("dod_teamchat"))n	{n		return 0;n	}n	new var1 = 0;n	new var2 = 0;n	read_argv(2, var1, "");n	var2 = str_to_num(var1);n	if (var2 == 3)n	{n		sub_a24(_arg0);n	}n	elsen	{n		sub_5ec(_arg0, var2);n	}n	return 0;n}nnpublic plugin_init()n{n	register_plugin("DoD Team Chat", "0.1", "AMXX DoD Community");n	register_clcmd("jointeam", "hook_team", -1, {0});n	register_cvar("dod_teamchat", 280, "AMXX DoD Community", "AMXX DoD Community");n	return 0;n}nnpublic plugin_modules()n{n	require_module("FUN");n	return 0;n}nnsub_5ec(_arg0, _arg1)n{n	new var1 = 0;n	new var2 = 0;n	get_players(var1, var2, 408, 412);n	new var3 = 0;n	while (var3 < var2)n	{n		set_client_listen(_arg0, var1[var3], "AMXX DoD Community");n		set_client_listen(var1[var3], _arg0, "AMXX DoD Community");n		if (_arg1 == get_user_team(var1[var3], {0}, "AMXX DoD Community"))n		{n			set_client_listen(var1[var3], _arg0, 1);n			set_client_listen(_arg0, var1[var3], 1);n		}n		if (get_user_team(var1[var3], {0}, "AMXX DoD Community") == 3)n		{n			set_client_listen(var1[var3], _arg0, 1);n		}n		var3++;n	}n	return 0;n}nnsub_a24(_arg0)n{n	new var1 = 0;n	new var2 = 0;n	get_players(var1, var2, 408, 412);n	new var3 = 0;n	while (var3 < var2)n	{n		set_client_listen(var1[var3], _arg0, "AMXX DoD Community");n		set_client_listen(_arg0, var1[var3], 1);n		if (get_user_team(var1[var3], {0}, "AMXX DoD Community") == 3)n		{n			set_client_listen(var1[var3], _arg0, 1);n		}n		var3++;n	}n	return 0;n}nn
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC