Creates a fake client.
| Parameter: | name (str) – The name to assign to the fake client |
|---|---|
| Return type: | Client |
| Returns: | A valid Client Object on success, None otherwise. |
Retrieves the Client object with that client index.
| Parameter: | index (int) – The client index |
|---|---|
| Return type: | Client |
| Returns: | A valid Client object on success, None if an invalid client index. |
Returns the number of clients put in the server.
| Parameter: | in_game_only (bool) – If False, players currently connecting are also counted. |
|---|---|
| Return type: | int |
Retrieves a Client by their serial number.
| Parameter: | serial (int) – The Client‘s serial number |
|---|---|
| Return type: | Client |
| Returns: | A valid Client object on success, None if an invalid client serial. |
Translates a userid index into a Client object
| Parameter: | userid (int) – Userid value |
|---|---|
| Return type: | Client |
| Returns: | A valid Client object on success, None if an invalid userid. |
Executes a client command on the server without being networked.
| Parameter: | cmd (str) – The command string to execute. |
|---|
Disconnects a player from the server.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Returns: | True on successful kick, False if the player is already in the kick queue. |
Prints a message to this client in the center of the screen.
| Parameter: | message (str) – The message to print. |
|---|
Prints a message to this client’s chat area.
| Parameter: | message (str) – The message to print. |
|---|
Prints a message to this client’s console.
| Parameter: | message (str) – The message to print. |
|---|
Prints a message to this client inside a hint box.
| Parameter: | message (str) – The message to print. |
|---|
Sets a convar value on a fake client.
| Parameters: |
|
|---|
Show a VGUI panel to the client.
| Parameters: |
|---|
The client’s angles vector.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The client’s origin vector.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
Whether the client is alive or dead.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The client’s average packet choke. Value is a percentage ranging from 0.0 to 1.0
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average incoming packet choke. Value is a percentage ranging from 0.0 to 1.0.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average outgoing packet choke. Value is a percentage ranging from 0.0 to 1.0.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s data flow, incoming and outgoing, in bytes per second.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The client’s incoming data flow in bytes per second.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The client’s outgoing data flow in bytes per second.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The client’s average packet latency, both incoming and outgoing, in seconds.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average incoming packet latency in seconds.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average outgoing packet latency in seconds.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average packet loss. Value is a percentage ranging from 0.0 to 1.0.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average incoming packet loss. Value is a percentage ranging from 0.0 to 1.0.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average outgoing packet loss. Value is a percentage ranging from 0.0 to 1.0.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average packet frequency, incoming and outgoing, in packets per second.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average incoming packet frequency, in packets per second.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s average outgoing packet frequency, in packets per second.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s send date rate in bytes per second
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The player’s death count.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
Whether the client is fake or not.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client or client not connected. | |
The player’s frag count.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The health of the player.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The IP address of this client.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client or client not connected. | |
The client’s language ID as an int.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client or client not connected. | |
The client’s packet latency (RTT), both incoming and outgoing, in seconds. This is more accurate than the average latency, but jittery.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s incoming packet latency (RTT) in seconds. This is more accurate than the average latency, but jittery.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s outgoing packet latency (RTT) in seconds. This is more accurate than the average latency, but jittery.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The client’s max size vector.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The client’s min size vector.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The client’s model name.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |
The name of this client.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client or client not connected. | |
The Steam ID of this client. This is None when the client is not authorized, yet.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client or client not connected. | |
The player’s team.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, no mod support, or client not in-game. | |
The amount of time the client has been connected in seconds.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or client is a fake client. | |
The userid of this client.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client or client not connected. | |
The player’s weapon name.
| Raises sourcemod.ViperError: | |
|---|---|
| Invalid client, client not in-game, or no mod support. | |