DisplayAskConnectBox

Last Updated2022-12-19
Created At2007-09-12

Displays a panel asking the client to connect to a specified IP. 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.

stock void DisplayAskConnectBox(int client, float time, const char[] ip, const char[] password = "")

Parameters

int client
Client index.
float time
Duration to hold the panel on the client's screen.
const char[] ip
Destination IP.
const char[] password
Password to connect to the destination IP. The client will be able to see this.

Return Value

void

Error

Invalid client index, or client not in game.