Ето го плъгина: viewtopic.php?f=18&t=2070
Ето го кода:
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <reapi>
#include <WPMGPrintChatColor>
new const g_MsgPrefix[] = "[Team Flash Snitch]"
const BLINDED_PARTLY = 200
const BLINDED_FULLY = 255
new g_szName[33][32]
public plugin_init()
{
register_plugin("[ReAPI] Team Flash Snitch", "1.0", "WaLkZ")
RegisterHookChain(RG_PlayerBlind, "PlayerBlind", .post = true)
RegisterHookChain(RG_CBasePlayer_SetClientUserInfoName, "CBasePlayer_SetUserInfoName", .post = true)
}
public client_putinserver(id)
{
get_user_name(id, g_szName[id], charsmax(g_szName[]))
}
public CBasePlayer_SetUserInfoName(const id, infobuffer[], szNewName[])
{
if (!equal(g_szName[id], szNewName))
{
copy(g_szName[id], charsmax(g_szName[]), szNewName)
}
}
public PlayerBlind(const iFlashed, const iInflictor, const iFlasher, const Float:fFadeTime, const Float:fFadeHold, const iAlpha, Float:fColor[3])
{
if (iFlashed == iFlasher)
{
return HC_CONTINUE
}
if (get_member(iFlashed, m_iTeam) == get_member(iFlasher, m_iTeam))
{
PrintChatColor(iFlashed, PRINT_COLOR_PLAYERTEAM, "!g%s You have been teamflashed by !t%s", g_MsgPrefix, g_szName[iFlasher])
PrintChatColor(iFlasher, PRINT_COLOR_PLAYERTEAM, "!g%s You have %s flashed a teammate !t%s", g_MsgPrefix, iAlpha == BLINDED_FULLY ? "totally" : "partly", g_szName[iFlashed])
}
return HC_CONTINUE
}
tfs_sound
0 - Звука изключен
1 - Звука включен
Самият звук: