Akuba

Untitled

Feb 7th, 2016
296
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. new weapon = GetPlayerWeaponSlot(client, TFWeaponSlot_Melee);
  2. if (weapon != -1 && IsValidEntity(weapon))
  3. {
  4. new index = GetEntProp(BossMeleeweapon, Prop_Send, "m_iItemDefinitionIndex");
  5. switch (index)
  6. {
  7. case 1:
  8. {
  9. // Do Stuff
  10. }
  11. case 2:
  12. {
  13. // Do other Stuff
  14. }
  15. default:
  16. {
  17. // Do another Stuff
  18. }
  19. }
  20. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment