Quote:
Originally Posted by DJEarthQuake
Code:
new const SzEnts_c4[][] = {"func_bomb_target", "info_bomb_target"};
public plugin_cfg()
{
new Ent = -1;
for(new remove;remove < sizeof SzEnts_c4;++remove)
while((Ent = engfunc(EngFunc_FindEntityByString, Ent, "classname", SzEnts_c4[remove])) != 0)
{
if(pev_valid(Ent))
{
engfunc(EngFunc_RemoveEntity, Ent);
}
}
}
|
I will test it thx
Edit: it's working but only after second round so do you think i need to add it for spawn..
Like that ?!
PHP Code:
// Prevent some entities from spawning
g_fwSpawn = register_forward(FM_Spawn, "fw_Spawn")
unregister_forward(FM_Spawn, g_fwSpawn)