for(new i; i < sizeof(ArmorPick); i++){ if(pickupid == ArmorPick[i]) { // SetPlayerArmour etc break; }}