|
virtual const char * | GetName ()=0 |
| Returns the player's name. More...
|
|
virtual const char * | GetIPAddress ()=0 |
| Returns the player's IP address. More...
|
|
virtual const char * | GetAuthString (bool validated=true)=0 |
| Returns the player's authentication string. More...
|
|
virtual edict_t * | GetEdict ()=0 |
| Returns the player's edict_t structure. More...
|
|
virtual bool | IsInGame ()=0 |
| Returns whether the player is in game (putinserver). More...
|
|
virtual bool | IsConnected ()=0 |
| Returns whether the player is connected. More...
|
|
virtual bool | IsFakeClient ()=0 |
| Returns whether the player is a fake client. More...
|
|
virtual AdminId | GetAdminId ()=0 |
| Returns the client's AdminId, if any. More...
|
|
virtual void | SetAdminId (AdminId id, bool temp)=0 |
| Sets the client's AdminId. More...
|
|
virtual int | GetUserId ()=0 |
| Returns the client's userid. More...
|
|
virtual unsigned int | GetLanguageId ()=0 |
| Returns the client's language id. More...
|
|
virtual IPlayerInfo * | GetPlayerInfo ()=0 |
| Returns a player's IPlayerInfo object, if any. More...
|
|
virtual bool | RunAdminCacheChecks ()=0 |
| Runs through Core's admin authorization checks. If the client is already an admin, no checks are performed. More...
|
|
virtual void | NotifyPostAdminChecks ()=0 |
| Notifies all listeners that the client has completed all of your post-connection (in-game, auth, admin) checks. More...
|
|
virtual unsigned int | GetSerial ()=0 |
| Returns the clients unique serial identifier. More...
|
|
virtual bool | IsAuthorized ()=0 |
| Return whether the client is authorized. More...
|
|
virtual void | Kick (const char *message)=0 |
| Kicks the client with a message. More...
|
|
virtual bool | IsInKickQueue ()=0 |
| Returns whether the client is marked as being in the kick queue. The client doesn't necessarily have to be in the actual kick queue for this function to return true. More...
|
|
virtual void | MarkAsBeingKicked ()=0 |
| Marks the client as being in the kick queue. They are not actually added to the kick queue. Use IGameHelpers::AddDelayedKick() to actually add them to the queue.
|
|
virtual void | SetLanguageId (unsigned int id)=0 |
|
virtual bool | IsSourceTV () const =0 |
| Returns whether the player is the SourceTV bot. More...
|
|
virtual bool | IsReplay () const =0 |
| Returns whether the player is the Replay bot. More...
|
|
virtual unsigned int | GetSteamAccountID (bool validated=true)=0 |
| Returns the client's Steam account ID. More...
|
|
virtual int | GetIndex () const =0 |
| Returns the client's edict/entity index. More...
|
|
virtual void | PrintToConsole (const char *pMsg)=0 |
| Prints a string to the client console. More...
|
|
virtual void | ClearAdmin ()=0 |
| Removes admin access from the client.
|
|
virtual uint64_t | GetSteamId64 (bool validated=true)=0 |
| Returns the client's Steam ID as a uint64. More...
|
|
virtual const char * | GetSteam2Id (bool validated=true)=0 |
| Returns the client's Steam ID rendered in Steam2 format. More...
|
|
virtual const char * | GetSteam3Id (bool validated=true)=0 |
| Returns the client's Steam ID rendered in Steam3 format. More...
|
|
Abstracts some Half-Life 2 and SourceMod properties about clients.
virtual void SourceMod::IGamePlayer::NotifyPostAdminChecks |
( |
| ) |
|
|
pure virtual |
Notifies all listeners that the client has completed all of your post-connection (in-game, auth, admin) checks.
If you returned "false" from OnClientPreAdminCheck(), you must ALWAYS manually invoke this function, even if RunAdminCacheChecks() failed or you did not assign an AdminId. Failure to call this function could result in plugins (such as reservedslots) not working properly.
If you are implementing asynchronous fetches, and the client disconnects during your fetching process, you should make sure to recognize that case and not call this function. That is, do not call this function on mismatched PreCheck calls, or on disconnected clients. A good way to check this is to pass userids around, which are unique per client connection.
Calling this has no effect if it has already been called on the given client (thus it is safe for multiple asynchronous plugins to call it at various times).
virtual bool SourceMod::IGamePlayer::RunAdminCacheChecks |
( |
| ) |
|
|
pure virtual |
Runs through Core's admin authorization checks. If the client is already an admin, no checks are performed.
Note that this function operates solely against the in-memory admin cache. It will check steamids, IPs, names, and verify a password if one exists. To implement other authentication schemes, simply don't call this function and use IGamePlayer::SetAdminId() instead.
- Returns
- True if access changed, false otherwise.