public Action:Command_WeaponBase(client, weaponLookupIndex, weaponSlot){ switch (weaponLookupIndex) { case 2171: { if (TF2_GetPlayerClass(client) != TFClass_Sniper) { PrintToChat(client, "[TF2Items] Item index %d cannot be used with your current class.", weaponLookupIndex); return; } } } decl String:strSteamID[32]; new weaponIndex; while ((weaponIndex = GetPlayerWeaponSlot(client, weaponSlot)) != -1) {...