I am using this code:
PHP Code:
public plugin_init()
{
register_plugin( "Entity Remover at Plugin Start", "1.0", "Alucard" );
register_event( "HLTV", "EventNewRound", "a", "1=0", "2=0" );
}
public EventNewRound( )
{
set_task(5.0, "remove_entity_task");
}
public remove_entity_task()
{
remove_entity( find_ent_by_model( -1, "func_breakable", "*1" ) );
}
This removes the entity forever. I want one which removes it 5 seconds after round starts and if round starts, the entity should re-spawn.