SourceMod SDK  1.7
IPlayerHelpers.h File Reference

Defines basic helper functions for Half-Life 2 clients. More...

#include <IShareSys.h>
#include <IAdminSystem.h>

Go to the source code of this file.


class  SourceMod::IGamePlayer
 Abstracts some Half-Life 2 and SourceMod properties about clients. More...
class  SourceMod::IClientListener
 Provides callbacks for important client events. More...
struct  SourceMod::cmd_target_info_t
 Holds the many command target info parameters. More...
class  SourceMod::ICommandTargetProcessor
 Intercepts a command target operation. More...
class  SourceMod::IPlayerManager


#define SM_REPLY_CONSOLE   0
#define SM_REPLY_CHAT   1
#define SM_MAXPLAYERS   65
#define COMMAND_FILTER_ALIVE   (1<<0)
#define COMMAND_FILTER_DEAD   (1<<1)
#define COMMAND_FILTER_NO_MULTI   (1<<4)
#define COMMAND_FILTER_NO_BOTS   (1<<5)

Detailed Description

Defines basic helper functions for Half-Life 2 clients.

vim: set ts=4 :


Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3.0, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

As a special exception, AlliedModders LLC gives you permission to link the code of this program (as well as its derivative works) to "Half-Life 2," the "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software by the Valve Corporation. You must obey the GNU General Public License in all respects for all other code used. Additionally, AlliedModders LLC grants this exception to all derivative works. AlliedModders LLC defines further exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), or

Version: $Id$

Macro Definition Documentation

#define COMMAND_FILTER_ALIVE   (1<<0)

Only allow alive players


Allow players not fully in-game

#define COMMAND_FILTER_DEAD   (1<<1)

Only filter dead players

#define COMMAND_FILTER_NO_BOTS   (1<<5)

Do not allow bots to be targetted


Ignore immunity rules

#define COMMAND_FILTER_NO_MULTI   (1<<4)

Do not allow multiple target patterns


Partial name had too many targets


A multi-filter (such as ) had no targets


Single client is immune


No target was found


Single client is not alive


Single client is not dead


Target was not human


Single client is not in game


Client passed the filter


Target name is a multi-lingual phrase


Target name is a raw string

#define SM_MAXPLAYERS   65

Maxplayer Count

#define SM_REPLY_CHAT   1

Reply to chat.

#define SM_REPLY_CONSOLE   0

Reply to console.