CreateDialog Function

Creates different types of ingame messages.

Note: On many newer games (Left 4 Dead/2008+), the display of this to clients is broken. Additionally, as of 2018, some games also require the client to have cl_showpluginmessages set to 1, a non-default value, for this to function.

void CreateDialog(int client, Handle kv, DialogType type)

Parameters

int client

Index of the client.

Handle kv

KeyValues handle to set the menu keys and options. (Check iserverplugin.h for more information).

DialogType type

Message type to display ingame.

Errors

Invalid client index, or client not in game.