View Single Post
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-22-2015 , 03:53   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #3

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
__________________

Last edited by Chdata; 01-22-2015 at 03:54.
Chdata is offline