PHP Code:
HookEvent("round_start", Event_RoundStart, EventHookMode_PostNoCopy);
public Action:Event_RoundStart(Handle:event, String:name[], bool:dontBroadcast)
{
new EntCount = GetEntityCount();
new String:EdictName[128];
for (new i = 0; i <= EntCount; i++)
{
if (IsValidEntity(i))
{
GetEdictClassname(i, EdictName, sizeof(EdictName));
// PrintToServer("EdictName %s",EdictName); //debug list all edicts
if (StrContains(EdictName, "prop_door_rotating", false) != -1)
{
AcceptEntityInput(i, "use"); //kill:) didnt know the command 4 doors
continue;
}
}
}
}