stock GetWeaponFromSlot( id , iSlot , &iEntity )
id: | Player id |
iSlot: | Inventory slot you want to get the weaponid from |
&iEntity: | Weapon entity id |
bugsy http://forums.alliedmods.net/showpost.php?p=1575989&postcount=2 Gets a weapon entity id based on inventory slot.
: Weapon CSW_* index on success, otherwise 0 Ex: GetWeaponFromSlot(id, 3, iEntity); // Should return CSW_KNIFE if player has one. // Knife is always in 3th slot (if not changed with plugin or something);
This documentation was automatically generated using pawn-docgen made by xPaw for AlliedMods.