new WeaponNames[][] = { "weapon_knife", "weapon_glock18", "weapon_ak47", "weapon_aug", "weapon_awp", "weapon_c4", "weapon_deagle", "weapon_elite", "weapon_famas",
"weapon_fiveseven", "weapon_flashbang", "weapon_g3sg1", "weapon_galil", "weapon_hegrenade", "weapon_m3", "weapon_xm1014", "weapon_m4a1", "weapon_m249", "weapon_mac10",
"weapon_mp5navy", "weapon_p90", "weapon_p228", "weapon_scout", "weapon_sg550", "weapon_sg552", "weapon_smokegrenade", "weapon_tmp", "weapon_ump45", "weapon_usp" };
.....
for(new i = 0; i < 30; i++)
RegisterHam(Ham_CS_Weapon_SendWeaponAnim, WeaponNames[i], "ham_CS_SendWeaponAnim");
.....
public ham_CS_SendWeaponAnim(Weapon, Anim, Skiplocal) {
new id = get_member(Weapon, m_pPlayer);
if(!IsCustomWeapon(Weapon))
SendWeaponAnim(id, Anim, 0);
else
SendWeaponAnim(id, Anim, get_entvar(Weapon, var_body));
return HAM_SUPERCEDE;
}