UTIL SayTextAll

From Valve Developer Community
Revision as of 21:29, 22 July 2021 by Amicdict (talk | contribs) (Created page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A UTIL wrapper function for UTIL_SayTextFilter that sends a message to all players.


void UTIL_SayTextAll(const char *pText, CBasePlayer *pPlayer, bool bChat)


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);