1st you have to stop using fakemeta_util
Then, use a loop :
PHP Code:
#include <engine>
#tryinclude <cstrike_pdatas>
#if !defined _cbaseentity_included
#assert Cstrike Pdatas and Offsets library required! Read the below instructions: \
1. Download it at forums.alliedmods.net/showpost.php?p=1712101#post1712101 \
2. Put it into amxmodx/scripting/include/ folder \
3. Compile this plugin locally, details: wiki.amxmodx.org/index.php/Compiling_Plugins_%28AMX_Mod_X%29 \
4. Install compiled plugin, details: wiki.amxmodx.org/index.php/Configuring_AMX_Mod_X#Installing
#endif
public RemoveC4All()
{
new grenade = FM_NULLENT
while( (grenade = find_ent_by_class(grenade, "grenade")) )
{
if( get_pdata_bool(grenade, m_bIsC4, XO_CGRENADE) )
{
remove_entity(grenade)
}
}
}
Needed files are there :
http://forums.alliedmods.net/showpos...01#post1712101
__________________