I own a retakes server and now I want to automatically break all glass, iron plates, etc. before the start of each round
my code is
PHP Code:
int ent = -1;
while ((ent = FindEntityByClassname(ent, "func_breakable")) != -1)
{
AcceptEntityInput(ent, "Break");
}
while ((ent = FindEntityByClassname(ent, "prop_dynamic")) != -1)
{
AcceptEntityInput(ent, "Break");
}
while ((ent = FindEntityByClassname(ent, "prop_door_rotating")) != -1)
{
AcceptEntityInput(ent, "open");
}
It worked but the problem is
Because Mirage B ’s bombsite shed also belongs to prop_dynamic, the code also breaks it.
So how can i just do not break the shed?
BTW:sry for my poor english If there are any grammar errors there