Try this
Code:
#include < amxmodx >
#include < fakemeta >
public plugin_precache( )
{
register_forward( FM_Spawn, "FwdSpawn" );
}
public FwdSpawn( iEntity )
{
if( pev_valid( iEntity ) )
{
static szClassname[ 32 ];
pev( iEntity, pev_classname, szClassname, 31 );
if( equal( szClassname, "env_snow" ) )
{
engfunc( EngFunc_RemoveEntity, iEntity );
return FMRES_SUPERCEDE;
}
}
return FMRES_IGNORED;
}
__________________