plugins/include/sdktools_functions.inc
changeset 954 3dd58fa4ccdc
child 955 c59162dec673
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/plugins/include/sdktools_functions.inc	Sat Jun 16 18:03:05 2007 +0000
     1.3 @@ -0,0 +1,51 @@
     1.4 +/**
     1.5 + * vim: set ts=4 :
     1.6 + * ===============================================================
     1.7 + * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     1.8 + * ===============================================================
     1.9 + *
    1.10 + *  This file is part of the SourceMod/SourcePawn SDK.  This file may only be used 
    1.11 + * or modified under the Terms and Conditions of its License Agreement, which is found 
    1.12 + * in LICENSE.txt.  The Terms and Conditions for making SourceMod extensions/plugins 
    1.13 + * may change at any time.  To view the latest information, see:
    1.14 + *   http://www.sourcemod.net/license.php
    1.15 + *
    1.16 + * Version: $Id$
    1.17 + */
    1.18 +
    1.19 +#if defined _sdktools_functions_included
    1.20 +  #endinput
    1.21 +#endif
    1.22 +#define _sdktools_functions_included
    1.23 +
    1.24 +/**
    1.25 + * Removes a player's item.
    1.26 + *
    1.27 + * @param client		Client index.
    1.28 + * @param item			CBaseCombatWeapon entity index.
    1.29 + * @return				True on success, false otherwise.
    1.30 + * @error				Invalid client or entity, lack of mod support, or client not in 
    1.31 + *						game.
    1.32 + */
    1.33 +native bool:RemovePlayerItem(client, item);
    1.34 +
    1.35 +/**
    1.36 + * Gives a named item to a player.
    1.37 + *
    1.38 + * @param client		Client index.
    1.39 + * @param item			Item classname (such as weapon_ak47).
    1.40 + * @param iSubType		Unknown.
    1.41 + * @return				Entity index on success, or -1 on failure.
    1.42 + * @error				Invalid client or client not in game, or lack of mod support.
    1.43 + */
    1.44 +native GivePlayerItem(client, const String:item[], iSubType=0);
    1.45 +
    1.46 +/**
    1.47 + * Returns the weapon in a player's slot.  
    1.48 + *
    1.49 + * @param client		Client index.
    1.50 + * @param slot			Slot index (mod specific).
    1.51 + * @return				Entity index on success, -1 if no weapon existed.
    1.52 + * @error				Invalid client or client notin game, or lack of mod support.
    1.53 + */
    1.54 +native GetPlayerWeaponSlot(client, slot);
    1.55 \ No newline at end of file