/************************************************************
* Nincs túsz beszéd *
* A túszok nem szólalnak meg mikor a CT felveszi őket. *
*************************************************************/
#include <amxmodx>
#include <fakemeta>
#if AMXX_VERSION_NUM >= 183
#include <csx>
#endif
#define PLUGIN "Nincs túsz beszéd"
#define VERSION "1.00"
#define AUTHOR "RaZ_HU"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_forward(FM_EmitSound, "tusz_kussol")
}
public plugin_cfg()
{
#if AMXX_VERSION_NUM < 183
new const EntClasses[][] =
{
"func_hostage_rescue",
"info_hostage_rescue",
"hostage_entity",
"monster_entity"
}
for(new i; i < sizeof EntClasses; i++)
{
if(find_ent_by_class(-1, EntClasses[i]))
return
}
#else
if(get_map_objectives() & MapObjective_Hostage)
return
#endif
pause("ad")
}
public tusz_kussol(ent, ch, const snd[])
{
if(equal(snd, "hostage/hos",11))
return FMRES_SUPERCEDE
return FMRES_IGNORED
}