Quote:
Originally Posted by Supremache
I was searching for codes those can remove c4 bomb from server and when i found one i get many problems so i got this code
|
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);
server_cmd("sv_restartround 1")
}
}
}
__________________