View Single Post
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 01-22-2015 , 14:29   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #4

Quote:
Originally Posted by Chdata View Post
PHP Code:
stock GetSlotFromPlayerWeapon(iClientiWeapon)
{
    for (new 
0<= 5i++)
    {
        if (
iWeapon == GetPlayerWeaponSlot(iClienti))
        {
            return 
i;
        }
    }
    return -
1;

Here's just a small code snippet incase someone needs this one specific thing
This plugin allows you to query the slot of any item without knowing the player. It is not just limited to weapons and a specific player.
__________________
bottiger is offline