Quote:
Originally Posted by Craxor
Don't ignore what i'm saying.
1. Post the whole code ( plugin init register_forward Fm_EmitSound registration) + Use equali insteand of containi() + Do some debugs tests to see if your public is called, if someone give you an advice read the whole reply!
|
Code:
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
if (!g_IsTFC)
FallDamage();
else
{
RegisterHam(Ham_TakeDamage, "player", "hw_TakeDamage", 0);
register_forward( FM_EmitSound, "FwdEmitSound" );
}
GetChecks();
}
Code:
public FwdEmitSound( id, iChannel, const szSound[ ], Float:fVol, Float:fAttn, iFlags, iPitch )
{
if(!g_IsThisTheMap)
return FMRES_IGNORED;
for(new i = 0; i < sizeof(g_szSound); i++)
{
if( containi(szSound, g_szSound[i]) != -1 )
{
forward_return(FMV_CELL, 0)
return FMRES_SUPERCEDE;
}
}
return FMRES_IGNORED;
}