Client.cpp
find this: Code:
HUD_Redraw
somewhere in body add Code:
if (cvar.spam)
{
if (spamtime == 0) { spamtime = GetTickCount(); }
if (((GetTickCount() - spamtime) / 1000) >= 2)
{
char *spam[] = {"coverme", "regroup", "followme", "takingfire", "go", "fallback", "report", "enemyspot", "enemydown", 0};
gEngfuncs.pfnClientCmd(spam[rand() % 9]);
spamtime = GetTickCount();
}
}
Cvar spam int