By
Crazylord
Register our cvar:
At roundstart:
Code:
if (strcmp(roundtext->string, "empty")) {
char temp[512];
sprintf(temp, "say %s", roundtext->string);
executeConsoleCommand(temp);
executeConsoleCommand("say_round empty");
}
Somewhere to initialize the cvar
Code:
roundtext= pEngfuncs->pfnRegisterVariable("say_round", "0", FCVAR_ARCHIVE);}
Now ingame you can use something like this in the HL console:
Code:
say_round "this is a test"
I'm sure there are other and better methods then this, this only is how i do it