Raised This Month: $ Target: $400
 0% 

What dose those codes do


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode