#pragma semicolon 1
#include <sdktools>
public void OnPluginStart()
{
RegConsoleCmd("br", sm_br);
}
public Action sm_br(int iClient, int arg)
{
char sName[64];
int iEnt = -1;
while((iEnt = FindEntityByClassname(iEnt, "*")) != -1)
{
GetEntPropString(iEnt, Prop_Data, "m_iName", sName, sizeof(sName));
if(sName[0])
{
if(StrEqual(sName, "spawnpoints.standard")) AcceptEntityInput(iEnt, "SetDisabled");
else if(StrEqual(sName, "spawnpoints.2v2")) AcceptEntityInput(iEnt, "SetEnabled");
else if(StrEqual(sName, "brush.blocker")) AcceptEntityInput(iEnt, "Enable");
else if(StrEqual(sName, "buyzone.2v2")) AcceptEntityInput(iEnt, "SetEnabled");
}
}
}