switch (GetPlayerWeapon(i)){ case 8, 9, 16, 17, 21, 35, 36, 47, 38, 42 : //do something here default : //do something else}