Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. int GetWeaponByName(const char* name)
  2. {
  3. if (name == "weapon_ak47")
  4. return WEAPON_AK47;
  5.  
  6. if (name == "weapon_aug")
  7. return WEAPON_AUG;
  8.  
  9. if (name == "weapon_awp")
  10. return WEAPON_AWP;
  11.  
  12. if (name == "weapon_bizon")
  13. return WEAPON_BIZON;
  14.  
  15. if (name == "weapon_cz75a")
  16. return WEAPON_CZ75A;
  17.  
  18. if (name == "weapon_deagle")
  19. return WEAPON_DEAGLE;
  20.  
  21. if (name == "weapon_elite")
  22. return WEAPON_ELITE;
  23.  
  24. if (name == "weapon_famas")
  25. return WEAPON_FAMAS;
  26.  
  27. if (name == "weapon_fiveseven")
  28. return WEAPON_FIVESEVEN;
  29.  
  30. if (name == "weapon_g3sg1")
  31. return WEAPON_G3SG1;
  32.  
  33. if (name == "weapon_galilar")
  34. return WEAPON_GALILAR;
  35.  
  36. if (name == "weapon_glock")
  37. return WEAPON_GLOCK;
  38.  
  39. if (name == "weapon_hkp2000")
  40. return WEAPON_HKP2000;
  41.  
  42. if (name == "weapon_m4a1")
  43. return WEAPON_M4A1;
  44.  
  45. if (name == "weapon_m4a1_silencer")
  46. return WEAPON_M4A1_SILENCER;
  47.  
  48. if (name == "weapon_m249")
  49. return WEAPON_M249;
  50.  
  51. if (name == "weapon_mac10")
  52. return WEAPON_MAC10;
  53.  
  54. if (name == "weapon_mag7")
  55. return WEAPON_MAG7;
  56.  
  57. if (name == "weapon_mp7")
  58. return WEAPON_MP7;
  59.  
  60. if (name == "weapon_mp5sd")
  61. return WEAPON_MP5;
  62.  
  63. if (name == "weapon_mp9")
  64. return WEAPON_MP9;
  65.  
  66. if (name == "weapon_negev")
  67. return WEAPON_NEGEV;
  68.  
  69. if (name == "weapon_nova")
  70. return WEAPON_NOVA;
  71.  
  72. if (name == "weapon_p90")
  73. return WEAPON_P90;
  74.  
  75. if (name == "weapon_p250")
  76. return WEAPON_P250;
  77.  
  78. if (name == "weapon_revolver")
  79. return WEAPON_REVOLVER;
  80.  
  81. if (name == "weapon_sawedoff")
  82. return WEAPON_SAWEDOFF;
  83.  
  84. if (name == "weapon_scar20")
  85. return WEAPON_SCAR20;
  86.  
  87. if (name == "weapon_sg556")
  88. return WEAPON_SG556;
  89.  
  90. if (name == "weapon_ssg08")
  91. return WEAPON_SSG08;
  92.  
  93. if (name == "weapon_tec9")
  94. return WEAPON_TEC9;
  95.  
  96. if (name == "weapon_ump45")
  97. return WEAPON_UMP45;
  98.  
  99. if (name == "weapon_usp_silencer")
  100. return WEAPON_USP_SILENCER;
  101.  
  102. if (name == "weapon_xm1014")
  103. return WEAPON_XM1014;
  104.  
  105. if (name == "weapon_knife_stiletto")
  106. return WEAPON_KNIFE_STILETTO;
  107.  
  108. if (name == "weapon_knife_gut")
  109. return WEAPON_KNIFE_GUT;
  110.  
  111. if (name == "weapon_bayonet")
  112. return WEAPON_BAYONET;
  113.  
  114. if (name == "weapon_knife_flip")
  115. return WEAPON_KNIFE_FLIP;
  116.  
  117. if (name == "weapon_knife_m9_bayonet")
  118. return WEAPON_KNIFE_M9_BAYONET;
  119.  
  120. if (name == "weapon_knife_tactical")//check
  121. return WEAPON_KNIFE_TACTICAL;
  122.  
  123. if (name == "weapon_knife_falchion")//check
  124. return WEAPON_KNIFE_FALCHION;
  125.  
  126. if (name == "weapon_knife_survival_bowie")//check
  127. return WEAPON_KNIFE_SURVIVAL_BOWIE;
  128.  
  129. if (name == "weapon_knife_butterfly")//check
  130. return WEAPON_KNIFE_BUTTERFLY;
  131.  
  132. if (name == "weapon_knife_push")//check
  133. return WEAPON_KNIFE_PUSH;
  134.  
  135. if (name == "weapon_knife_ursus")//check
  136. return WEAPON_KNIFE_URSUS;
  137.  
  138. if (name == "weapon_knife_gypsy_jackknife")//check
  139. return WEAPON_KNIFE_GYPSY_JACKKNIFE;
  140.  
  141. if (name == "weapon_knife_stiletto")//check
  142. return WEAPON_KNIFE_STILETTO;
  143.  
  144. if (name == "weapon_knife_windowmaker")//check
  145. return WEAPON_KNIFE_WIDOWMAKER;
  146.  
  147. if (name == "glove_studded_bloodhound")//check
  148. return GLOVE_STUDDED_BLOODHOUND;
  149.  
  150. if (name == "glove_sporty")//check
  151. return GLOVE_SPORTY;
  152.  
  153. if (name == "glove_sporty")//check
  154. return GLOVE_SPORTY;
  155.  
  156. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement