View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-05-2020 , 23:37   Re: What dose those codes do
Reply With Quote #9

Quote:
Originally Posted by DJEarthQuake View Post
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_Spawng_fwSpawn

Last edited by Supremache; 08-06-2020 at 00:05.
Supremache is offline