HLMOD.HU Forrás Megtekintés
- www.hlmod.hu/*
Fordította: BBk - Death of Legend
*/
#include <amxmodx>
#include <fakemeta>
new const g_bomb_sounds[] =
{
"weapons/c4_beep1.wav",
"weapons/c4_beep2.wav",
"weapons/c4_beep3.wav",
"weapons/c4_beep4.wav",
"weapons/c4_beep5.wav",
"weapons/c4_click.wav"
}
new cvar_enabled
public plugin_init()
{
register_plugin("Csendes Bomba", "1.0", "fezh")
cvar_enabled = register_cvar("amx_silent_bomb", "1")
register_forward(FM_EmitSound, "fw_EmitSound")
register_logevent("logevent_plantedthebomb", 3, "2=Planted_The_Bomb")
register_dictionary("csendes_bomba.txt")
}
public fw_EmitSound(ent, channel, const sound[])
{
if (get_pcvar_num(cvar_enabled))
{
for (new i = 0; i < sizeof g_bomb_sounds; ++i)
{
if (equal(sound, g_bomb_sounds[i]))
{
return FMRES_SUPERCEDE;
}
}
}
return FMRES_IGNORED;
}
public logevent_plantedthebomb()
{
if (get_pcvar_num(cvar_enabled))
{
client_print(0, print_chat, "[AMXX] %L", LANG_PLAYER, "BOMB_MESSAGE")
}
}