plugins/include/cstrike.inc
author Erik Minekus <erik@interwavestudios.com>
Wed Jun 23 23:41:47 2010 -0400 (2010-06-23)
changeset 3052 a102c645bf4b
parent 2289 44045ead61cd
child 3313 2ddc75e24c53
permissions -rw-r--r--
Fixed lack of error checking on sm_motd. (bug 4460, r=dvander)
     1 /**
     2  * vim: set ts=4 :
     3  * =============================================================================
     4  * SourceMod (C)2004-2008 AlliedModders LLC.  All rights reserved.
     5  * =============================================================================
     6  *
     7  * This file is part of the SourceMod/SourcePawn SDK.
     8  *
     9  * This program is free software; you can redistribute it and/or modify it under
    10  * the terms of the GNU General Public License, version 3.0, as published by the
    11  * Free Software Foundation.
    12  * 
    13  * This program is distributed in the hope that it will be useful, but WITHOUT
    14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    15  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
    16  * details.
    17  *
    18  * You should have received a copy of the GNU General Public License along with
    19  * this program.  If not, see <http://www.gnu.org/licenses/>.
    20  *
    21  * As a special exception, AlliedModders LLC gives you permission to link the
    22  * code of this program (as well as its derivative works) to "Half-Life 2," the
    23  * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
    24  * by the Valve Corporation.  You must obey the GNU General Public License in
    25  * all respects for all other code used.  Additionally, AlliedModders LLC grants
    26  * this exception to all derivative works.  AlliedModders LLC defines further
    27  * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
    28  * or <http://www.sourcemod.net/license.php>.
    29  *
    30  * Version: $Id$
    31  */
    32 
    33 #if defined _cstrike_included
    34   #endinput
    35 #endif
    36 #define _cstrike_included
    37 
    38 #define CS_TEAM_NONE		0	/**< No team yet. */
    39 #define CS_TEAM_SPECTATOR	1	/**< Spectators. */
    40 #define CS_TEAM_T 			2	/**< Terrorists. */
    41 #define CS_TEAM_CT			3	/**< Counter-Terrorists. */
    42 
    43 #define CS_SLOT_PRIMARY		0	/**< Primary weapon slot. */
    44 #define CS_SLOT_SECONDARY	1	/**< Secondary weapon slot. */
    45 #define CS_SLOT_GRENADE		3	/**< Grenade slot (will only return one grenade). */
    46 #define CS_SLOT_C4			4	/**< C4 slot. */
    47 
    48 /**
    49  * Respawns a player.
    50  *
    51  * @param client		Player's index.
    52  * @noreturn
    53  * @error			Invalid client index, client not in game.
    54  */
    55 native CS_RespawnPlayer(client);
    56 
    57 /**
    58  * Switches the player's team.
    59  *
    60  * @param client		Player's index.
    61  * @param team			Team index.
    62  * @noreturn
    63  * @error			Invalid client index, client not in game.
    64  */
    65 native CS_SwitchTeam(client, team);
    66 
    67 /**
    68  * Do not edit below this line!
    69  */
    70 public Extension:__ext_cstrike = 
    71 {
    72 	name = "cstrike",
    73 	file = "games/game.cstrike.ext",
    74 	autoload = 0,
    75 #if defined REQUIRE_EXTENSIONS
    76 	required = 1,
    77 #else
    78 	required = 0,
    79 #endif
    80 };
    81 
    82 #if !defined REQUIRE_EXTENSIONS
    83 public __ext_cstrike_SetNTVOptional()
    84 {
    85 	MarkNativeAsOptional("CS_RespawnPlayer");
    86 	MarkNativeAsOptional("CS_SwitchTeam");
    87 }
    88 #endif