CreateDialog

Last Updated2022-12-19
Created At2007-06-01

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.

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

Parameters

int client
Index of the client.
KeyValues handle to set the menu keys and options. (Check iserverplugin.h for more information).
Message type to display ingame.

Return Value

void

Error

Invalid client index, or client not in game.