Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int GetWeaponByName(const char* name)
- {
- if (name == "weapon_ak47")
- return WEAPON_AK47;
- if (name == "weapon_aug")
- return WEAPON_AUG;
- if (name == "weapon_awp")
- return WEAPON_AWP;
- if (name == "weapon_bizon")
- return WEAPON_BIZON;
- if (name == "weapon_cz75a")
- return WEAPON_CZ75A;
- if (name == "weapon_deagle")
- return WEAPON_DEAGLE;
- if (name == "weapon_elite")
- return WEAPON_ELITE;
- if (name == "weapon_famas")
- return WEAPON_FAMAS;
- if (name == "weapon_fiveseven")
- return WEAPON_FIVESEVEN;
- if (name == "weapon_g3sg1")
- return WEAPON_G3SG1;
- if (name == "weapon_galilar")
- return WEAPON_GALILAR;
- if (name == "weapon_glock")
- return WEAPON_GLOCK;
- if (name == "weapon_hkp2000")
- return WEAPON_HKP2000;
- if (name == "weapon_m4a1")
- return WEAPON_M4A1;
- if (name == "weapon_m4a1_silencer")
- return WEAPON_M4A1_SILENCER;
- if (name == "weapon_m249")
- return WEAPON_M249;
- if (name == "weapon_mac10")
- return WEAPON_MAC10;
- if (name == "weapon_mag7")
- return WEAPON_MAG7;
- if (name == "weapon_mp7")
- return WEAPON_MP7;
- if (name == "weapon_mp5sd")
- return WEAPON_MP5;
- if (name == "weapon_mp9")
- return WEAPON_MP9;
- if (name == "weapon_negev")
- return WEAPON_NEGEV;
- if (name == "weapon_nova")
- return WEAPON_NOVA;
- if (name == "weapon_p90")
- return WEAPON_P90;
- if (name == "weapon_p250")
- return WEAPON_P250;
- if (name == "weapon_revolver")
- return WEAPON_REVOLVER;
- if (name == "weapon_sawedoff")
- return WEAPON_SAWEDOFF;
- if (name == "weapon_scar20")
- return WEAPON_SCAR20;
- if (name == "weapon_sg556")
- return WEAPON_SG556;
- if (name == "weapon_ssg08")
- return WEAPON_SSG08;
- if (name == "weapon_tec9")
- return WEAPON_TEC9;
- if (name == "weapon_ump45")
- return WEAPON_UMP45;
- if (name == "weapon_usp_silencer")
- return WEAPON_USP_SILENCER;
- if (name == "weapon_xm1014")
- return WEAPON_XM1014;
- if (name == "weapon_knife_stiletto")
- return WEAPON_KNIFE_STILETTO;
- if (name == "weapon_knife_gut")
- return WEAPON_KNIFE_GUT;
- if (name == "weapon_bayonet")
- return WEAPON_BAYONET;
- if (name == "weapon_knife_flip")
- return WEAPON_KNIFE_FLIP;
- if (name == "weapon_knife_m9_bayonet")
- return WEAPON_KNIFE_M9_BAYONET;
- if (name == "weapon_knife_tactical")//check
- return WEAPON_KNIFE_TACTICAL;
- if (name == "weapon_knife_falchion")//check
- return WEAPON_KNIFE_FALCHION;
- if (name == "weapon_knife_survival_bowie")//check
- return WEAPON_KNIFE_SURVIVAL_BOWIE;
- if (name == "weapon_knife_butterfly")//check
- return WEAPON_KNIFE_BUTTERFLY;
- if (name == "weapon_knife_push")//check
- return WEAPON_KNIFE_PUSH;
- if (name == "weapon_knife_ursus")//check
- return WEAPON_KNIFE_URSUS;
- if (name == "weapon_knife_gypsy_jackknife")//check
- return WEAPON_KNIFE_GYPSY_JACKKNIFE;
- if (name == "weapon_knife_stiletto")//check
- return WEAPON_KNIFE_STILETTO;
- if (name == "weapon_knife_windowmaker")//check
- return WEAPON_KNIFE_WIDOWMAKER;
- if (name == "glove_studded_bloodhound")//check
- return GLOVE_STUDDED_BLOODHOUND;
- if (name == "glove_sporty")//check
- return GLOVE_SPORTY;
- if (name == "glove_sporty")//check
- return GLOVE_SPORTY;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement