| AddUserFlags | Sets access flags on a client. If the client is not an admin,
a temporary, anonymous AdminId is given. |
| CanUserTarget | Returns whether a user can target another user.
This is a helper function for CanAdminTarget. |
| ChangeClientTeam | Changes a client's team through the mod's generic team changing function.
On CS:S, this will kill the player. |
| CreateFakeClient | Creates a fake client. |
| GetClientAbsAngles | Returns the client's position angle. |
| GetClientAbsOrigin | Returns the client's origin vector. |
| GetClientArmor | Returns the client's armor. |
| GetClientAuthId | Retrieves a client's authentication string (SteamID). |
| GetClientAuthString | |
| GetClientAvgChoke | Returns the client's average packet choke, values go from 0 to 1 (for percentages). |
| GetClientAvgData | Returns the client's data flow in bytes/sec. |
| GetClientAvgLatency | Returns the client's average packet latency in seconds. |
| GetClientAvgLoss | Returns the client's average packet loss, values go from 0 to 1 (for percentages). |
| GetClientAvgPackets | Returns the client's average packet frequency in packets/sec. |
| GetClientCount | Returns the client count put in the server. |
| GetClientDataRate | Returns the client's send data rate in bytes/sec. |
| GetClientDeaths | Returns the client's death count. |
| GetClientFrags | Returns the client's frag count. |
| GetClientFromSerial | Returns the client index by its serial number. |
| GetClientHealth | Returns the client's health. |
| GetClientInfo | Retrieves values from client replicated keys. |
| GetClientIP | Retrieves a client's IP address. |
| GetClientLatency | Returns the client's current latency (RTT), more accurate than GetAvgLatency but jittering. |
| GetClientMaxs | Returns the client's max size vector. |
| GetClientMins | Returns the client's min size vector. |
| GetClientModel | Returns the client's model name. |
| GetClientName | Returns the client's name. |
| GetClientOfUserId | Translates an userid index to the real player index. |
| GetClientSerial | Returns the clients unique serial identifier. |
| GetClientTeam | Retrieves a client's team index. |
| GetClientTime | Returns the client's connection time in seconds. |
| GetClientUserId | Retrieves a client's user id, which is an index incremented for every client
that joins the server. |
| GetClientWeapon | Returns the client's weapon name. |
| GetMaxClients | |
| GetMaxHumanPlayers | Returns the maximum number of human players allowed on the server. This is
a game-specific function used on newer games to limit the number of humans
that can join a game and can be lower than MaxClients. It is the number often
reflected in the server browser or when viewing the output of the status command.
On unsupported games or modes without overrides, it will return the same value
as MaxClients.
You should not globally cache the value to GetMaxHumanPlayers() because it can change across
game modes. You may still cache it locally. |
| GetSteamAccountID | Returns the client's Steam account ID, a number uniquely identifying a given Steam account.
This number is the basis for the various display SteamID forms, see the AuthIdType enum for examples. |
| GetUserAdmin | Retrieves a client's AdminId. |
| GetUserFlagBits | Returns client access flags. If the client is not an admin,
the result is always 0. |
| IsClientAuthorized | Returns if a certain player has been authenticated. |
| IsClientConnected | Returns if a certain player is connected. |
| IsClientInGame | Returns if a certain player has entered the game. |
| IsClientInKickQueue | Returns if a client is in the "kick queue" (i.e. the client will be kicked
shortly and thus they should not appear as valid). |
| IsClientObserver | Returns if a certain player is an observer/spectator. |
| IsClientReplay | Returns if a certain player is the Replay bot. |
| IsClientSourceTV | Returns if a certain player is the SourceTV bot. |
| IsClientTimingOut | Returns if a client is timing out |
| IsFakeClient | Returns if a certain player is a fake client. |
| IsPlayerAlive | Returns if the client is alive or dead.
Note: This function was originally in SDKTools and was moved to core. |
| IsPlayerInGame | |
| KickClient | Disconnects a client from the server as soon as the next frame starts.
Note: Originally, KickClient() was immediate. The delay was introduced
because despite warnings, plugins were using it in ways that would crash.
The new safe version can break cases that rely on immediate disconnects,
but ensures that plugins do not accidentally cause crashes.
If you need immediate disconnects, use KickClientEx().
Note: IsClientInKickQueue() will return true before the kick occurs. |
| KickClientEx | Immediately disconnects a client from the server.
Kicking clients from certain events or callbacks may cause crashes. If in
doubt, create a short (0.1 second) timer to kick the client in the next
available frame. |
| NotifyPostAdminCheck | Signals that a player has completed post-connection admin checks.
Has no effect if the player has already had this event signalled.
Note: This must be sent even if no admin id was assigned. |
| RemoveUserFlags | Removes flags from a client. If the client is not an admin,
this has no effect. |
| RunAdminCacheChecks | Runs through the Core-defined admin authorization checks on a player.
Has no effect if the player is already an admin.
Note: This function is based on the internal cache only. |
| SetFakeClientConVar | Sets a convar value on a fake client. |
| SetUserAdmin | Sets a client's AdminId. |
| SetUserFlagBits | Sets access flags on a client using bits instead of flags. If the
client is not an admin, and flags not 0, a temporary, anonymous AdminId is given. |