Модератор форума
-
Автор темы
- #1
Код:
void ChatSpam(CPlayer* me, CUserCmd* cmd)
{
int static nextTime = Interface.Globals->interval_per_tick * 2.f;
stringstream message;
message << "say";
int static counter = 1;
switch (nextTime) {
case 0:
case 1: {
int value = counter % 5;
switch (value) {
case 1: message << " PrimalHack Best LEGIT Software for CSGO";
break;
case 2: message << " PrimalHack owned U";
break;
case 3: message << " PrimalHack owned me and > all";
break;
case 4: message << " ?PrimalHack";
break;
}
}break;
}
counter++;
string str(message.str());
char * send = new char[str.length() + 1];
std::strcpy(send, str.c_str());
if (send != "say") {
Interface.Engine->ExecuteConsoleCommand(send);
}
}