UTIL SayTextAll
Jump to navigation
Jump to search
A UTIL wrapper function for UTIL_SayTextFilter that sends a message to all players.
Usage
void UTIL_SayTextAll(const char *pText, CBasePlayer *pPlayer, bool bChat)
Examples
char* NotifyRestartText = ""; V_snprintf(NotifyRestartText, sizeof(NotifyRestartText), "This server will restart in %f seconds.", sv_restart_server_delay.GetFloat()); UTIL_SayTextAll(NotifyRestartText, UTIL_GetCommandClient(), true);