SourceMod SDK
1.7
|
Public Member Functions | |
const char * | GetInterfaceName () |
Must return a string defining the interface's unique name. | |
unsigned int | GetInterfaceVersion () |
Must return an integer defining the interface's version. | |
virtual void | AddClientListener (IClientListener *listener)=0 |
Adds a client listener. More... | |
virtual void | RemoveClientListener (IClientListener *listener)=0 |
Removes a client listener. More... | |
virtual IGamePlayer * | GetGamePlayer (int client)=0 |
Retrieves an IGamePlayer object by its client index. More... | |
virtual IGamePlayer * | GetGamePlayer (edict_t *pEdict)=0 |
Retrieves an IGamePlayer object by its edict_t pointer. More... | |
virtual int | GetMaxClients ()=0 |
Returns the maximum number of clients. More... | |
virtual int | GetNumPlayers ()=0 |
Returns the number of players currently connected. More... | |
virtual int | GetClientOfUserId (int userid)=0 |
Returns the client index by its userid. More... | |
virtual bool | IsServerActivated ()=0 |
Returns whether or not the server is activated. More... | |
virtual unsigned int | GetReplyTo ()=0 |
Gets SourceMod's reply source. More... | |
virtual unsigned int | SetReplyTo (unsigned int reply)=0 |
Sets SourceMod's reply source. More... | |
virtual int | FilterCommandTarget (IGamePlayer *pAdmin, IGamePlayer *pTarget, int flags)=0 |
Tests if a player meets command filtering rules. More... | |
virtual void | RegisterCommandTargetProcessor (ICommandTargetProcessor *pHandler)=0 |
Registers a command target processor. More... | |
virtual void | UnregisterCommandTargetProcessor (ICommandTargetProcessor *pHandler)=0 |
Removes a command target processor. More... | |
virtual int | GetClientFromSerial (unsigned int serial)=0 |
Returns the client index by its serial number. More... | |
virtual void | ProcessCommandTarget (cmd_target_info_t *info)=0 |
Processes the pattern inside a cmd_target_info_t structure and outputs the clients that match it. More... | |
virtual void | ClearAdminId (AdminId id)=0 |
Removes all access for the given admin id. More... | |
virtual void | RecheckAnyAdmins ()=0 |
Reruns admin checks on all players. | |
Public Member Functions inherited from SourceMod::SMInterface | |
virtual bool | IsVersionCompatible (unsigned int version) |
Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning. More... | |
|
pure virtual |
Adds a client listener.
listener | Pointer to an IClientListener. |
|
pure virtual |
Removes all access for the given admin id.
id | Admin id. |
|
pure virtual |
Tests if a player meets command filtering rules.
pAdmin | IGamePlayer of the admin, or NULL if the server. |
pTarget | IGamePlayer of the player being targeted. |
flags | COMMAND_FILTER flags. |
|
pure virtual |
Returns the client index by its serial number.
|
pure virtual |
Returns the client index by its userid.
userid | Userid of the client. |
|
pure virtual |
Retrieves an IGamePlayer object by its client index.
Note: This will return a valid object for any player, connected or not. Note: Client indexes start at 1, not 0.
client | Index of the client. |
|
pure virtual |
Retrieves an IGamePlayer object by its edict_t pointer.
pEdict | Index of the client |
|
pure virtual |
Returns the maximum number of clients.
Note: this will not work until the server is activated.
|
pure virtual |
Returns the number of players currently connected.
|
pure virtual |
Gets SourceMod's reply source.
|
pure virtual |
Returns whether or not the server is activated.
|
pure virtual |
Processes the pattern inside a cmd_target_info_t structure and outputs the clients that match it.
info | Pointer to the cmd_target_info_t structure to process. |
|
pure virtual |
Registers a command target processor.
pHandler | Pointer to an ICommandTargetProcessor instance. |
|
pure virtual |
Removes a client listener.
listener | Pointer to an IClientListener. |
|
pure virtual |
Sets SourceMod's reply source.
reply | Reply source. |
|
pure virtual |
Removes a command target processor.
pHandler | Pointer to an ICommandTargetProcessor instance. |