Akuba icon

Untitled

Akuba | PRO | 02/07/16 09:58:50 PM UTC | 0 ⭐ | 264 👁️ | Never ⏰ | []
text |

330 B

|

None

|

0 👍

/

0 👎

new weapon = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee);
if (weapon != -1 && IsValidEntity(weapon))
{
	new index = GetEntProp(BossMeleeweapon, Prop_Send, "m_iItemDefinitionIndex");
	switch (index)
	{
		case 1:
		{
			// Do Stuff
		}
		case 2:
		{
			// Do other Stuff
		}
		default:
		{
			// Do another Stuff
		}
	}
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎