Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- }
- }
- }
Advertisement