void play2team(float t, string filename)
{
if (autocvar_bot_sound_monopoly) return;
- entity head;
- FOR_EACH_REALPLAYER(head)
- {
- if (head.team == t) play2(head, filename);
- }
+ FOREACH_CLIENT(IS_PLAYER(it) && IS_REAL_CLIENT(it) && it.team == t, LAMBDA(play2(it, filename)));
}
void play2all(string samp)