I really don't know, but maybe you can delete it, and make new entity have the same origin, size ... of it
Code:
#include < amxmodx >
#include < amxmisc >
#include < fakemeta >
public plugin_init( )
register_forward( FM_Spawn, "OnEntitySpawn" );
public OnEntitySpawn( Entity )
{
if( pev_valid( Entity ) ) // Not a NULL Entity
{
static ClassName[ 32 ];
pev( Entity, pev_classname, ClassName, charsmax( ClassName ) );
if( equal( ClassName, "trigger_once" ) )
{
static NewEntity;
NewEntity = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "trigger_multiple" ) );
set_pev( NewEntity, pev_origin, pev( Entity, pev_origin ) );
engfunc( EngFunc_SetSize, NewEntity, pev( Entity, pev_mins ), pev( Entity, pev_maxs ) );
engfunc( EngFunc_RemoveEntity, Entity );
return FMRES_SUPERCEDE;
}
}
return FMRES_IGNORED;
}