Place your bool outside of your client loop.
Also don't use IsValidClient inside of your client loop as it's a waste of cpu for various reasons.
PHP Code:
bool g_bSomething;
public void OnMapStart()
{
CreateTimer(5.0, Timer_Something, _, TIMER_REPEAT);
}
public Action Timer_Something(Handle timer)
{
g_bSomething = !g_bSomething;
for (int i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i) && !IsFakeClient(i))
{
if (g_bSomething) CS_SetClientClanTag(i, "Hey");
else CS_SetClientClanTag(i, "Ho");
}
}
return Plugin_Continue;
}
__________________