DisplayAskConnectBox Function

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.

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.

Errors

Invalid client index, or client not in game.