faluco@1441: /**
faluco@1441: * vim: set ts=4 :
faluco@1441: * =============================================================================
ds@1947: * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved.
faluco@1441: * =============================================================================
faluco@1441: *
faluco@1441: * This file is part of the SourceMod/SourcePawn SDK.
faluco@1441: *
faluco@1441: * This program is free software; you can redistribute it and/or modify it under
faluco@1441: * the terms of the GNU General Public License, version 3.0, as published by the
faluco@1441: * Free Software Foundation.
faluco@1441: *
faluco@1441: * This program is distributed in the hope that it will be useful, but WITHOUT
faluco@1441: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
faluco@1441: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
faluco@1441: * details.
faluco@1441: *
faluco@1441: * You should have received a copy of the GNU General Public License along with
faluco@1441: * this program. If not, see .
faluco@1441: *
faluco@1441: * As a special exception, AlliedModders LLC gives you permission to link the
faluco@1441: * code of this program (as well as its derivative works) to "Half-Life 2," the
faluco@1441: * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
faluco@1441: * by the Valve Corporation. You must obey the GNU General Public License in
faluco@1441: * all respects for all other code used. Additionally, AlliedModders LLC grants
faluco@1441: * this exception to all derivative works. AlliedModders LLC defines further
faluco@1441: * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
faluco@1441: * or .
faluco@1441: *
faluco@1441: * Version: $Id$
faluco@1441: */
faluco@1441:
faluco@1441: #if defined _cstrike_included
faluco@1441: #endinput
faluco@1441: #endif
faluco@1441: #define _cstrike_included
faluco@1441:
faluco@1441: #define CS_TEAM_NONE 0 /**< No team yet. */
faluco@1441: #define CS_TEAM_SPECTATOR 1 /**< Spectators. */
dvander@1459: #define CS_TEAM_T 2 /**< Terrorists. */
dvander@1459: #define CS_TEAM_CT 3 /**< Counter-Terrorists. */
dvander@1459:
dvander@1459: #define CS_SLOT_PRIMARY 0 /**< Primary weapon slot. */
dvander@1459: #define CS_SLOT_SECONDARY 1 /**< Secondary weapon slot. */
dvander@1459: #define CS_SLOT_GRENADE 3 /**< Grenade slot (will only return one grenade). */
dvander@1459: #define CS_SLOT_C4 4 /**< C4 slot. */
faluco@1441:
faluco@1441: /**
faluco@1441: * Respawns a player.
faluco@1441: *
faluco@1441: * @param client Player's index.
faluco@1441: * @noreturn
faluco@1441: * @error Invalid client index, client not in game.
faluco@1441: */
faluco@1441: native CS_RespawnPlayer(client);
faluco@1441:
faluco@1441: /**
faluco@1441: * Switches the player's team.
faluco@1441: *
faluco@1441: * @param client Player's index.
faluco@1441: * @param team Team index.
faluco@1441: * @noreturn
faluco@1441: * @error Invalid client index, client not in game.
faluco@1441: */
faluco@1441: native CS_SwitchTeam(client, team);
faluco@1441:
faluco@1441: /**
faluco@1441: * Do not edit below this line!
faluco@1441: */
faluco@1441: public Extension:__ext_cstrike =
faluco@1441: {
dvander@1573: name = "cstrike",
dvander@1459: file = "games/game.cstrike.ext",
faluco@1441: autoload = 0,
faluco@1441: #if defined REQUIRE_EXTENSIONS
faluco@1441: required = 1,
faluco@1441: #else
faluco@1441: required = 0,
faluco@1441: #endif
dvander@1459: };
dvander@1573:
dvander@1573: #if !defined REQUIRE_EXTENSIONS
dvander@1573: public __ext_cstrike_SetNTVOptional()
dvander@1573: {
dvander@1573: MarkNativeAsOptional("CS_RespawnPlayer");
dvander@1573: MarkNativeAsOptional("CS_SwitchTeam");
dvander@1573: }
dvander@1573: #endif